Skip to content

18.0.0

Latest
Compare
Choose a tag to compare
@sheikalthaf sheikalthaf released this 24 Oct 03:32
f4e9929

What's Changed

New Contributors

Full Changelog: v9.0.0...18.0.0

Breaking Change

  • All the inputs are now signal based so the [dataSource] should be a signal based.
@Component({
  selector: 'app-root',
  template: `
    <ngu-carousel #myCarousel [dataSource]="data()">
        ...
    </ngu-carousel>
  `,
})
export class AppComponent {
  data = signal([1,2,3]);

  updateData() {
    // always return a new array so that signal notify the changes
    this.data.update(d => [...d, 4]);
  }
}
  • All the public APIs are now signal based
- myCarousel.pointNumbers -> myCarousel.pointNumbers()
- myCarousel.isFirst -> myCarousel.isFirst()
- myCarousel.isLast -> myCarousel.isLast()
- myCarousel.activePoint -> myCarousel.activePoint()

Performance

  • Zoneless support is added.
  • By using the signal inputs we are now only render the new data when input signal values changes, instead of checking on every change detection via ngDoCheck.