How can I pass input values to a component that needs to be bootstrapped in angular2
At the time of bootstrap, how can I pass some value to sampleInput?
@NgModule({
declarations: [SampleComponent],
imports : [],
exports : [],
providers : [
], bootstrap : [SampleComponent]
})
export class WrapperAppModule {
}
and my SampleComponent code is,
@Component({
selector : 'app-sample',
styleUrls: ['./app.sample.css'],
template: `<div>sample app</div>`,
})
export class SampleComponent {
@Input('sampleInput') sampleInput:string;
}