import { ChangeDetectionStrategy , Component } from '@angular/core' ; import { FeatureSettingsComponent } from '@app/feature' ; import { BookmarksFeatureBookmark , BookmarksFeatureSettings } from '@modules/bookmarks/bookmarks-feature-settings' ; @ Component ( { selector : 'app-bookmarks-settings' , templateUrl : './bookmarks-settings.component.html' , changeDetection : ChangeDetectionStrategy . OnPush } ) export class BookmarksSettingsComponent extends FeatureSettingsComponent < BookmarksFeatureSettings > { public load ( ) { } public onExternalChange ( bookmark , external ) { bookmark . external = external ; this . save ( ) ; } public onChange ( ) { this . save ( ) ; } }