For example, I have component:
@Component({
selector: 'my-selector',
inputs: ['data'],
moduleId: module.id,
template: '<p>{{transformedData}}</p>'
})
export class MyComponent {
public transformedData: string;
@Input() public data: string;
// How to call this event on "data" change?
public someEvent() {
this.transformedData = this.data + '!';
}
}
How to call someEvent() on data changes?
moduleIdmetadata?moduleId: module.idit took path from 'dist/blabla...' but there angular2 found only .js files not HTML now how to tell angular to take path from src folder instead of dist folder ?dist/blablatoo