import the CoverFlowModule
module.
import { CoverFlowModule } from 'ng-cover-flow';
...
@NgModule({
declarations: [
AppComponent
],
imports: [
CoverFlowModule,
...
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
Add the cover-flow attribute element.
@Component({
selector: 'sample',
template:`
<div cover-flow>
<div></div>
<div></div>
...
</div>
`
})
class Sample {}
That's it!
Name | Type | Description | Default |
---|---|---|---|
cover-flow-disabled | @Input | all coverflow scrolling events is disabled. | false |
- auto move scrolling
- responsive sizing