Ich habe eine Angular 1.5-Komponente in TypeScript geschrieben und ich würde gerne wissen, wie auf die Bindungen im Controller zugreifen.Angular 1.5-Komponente in TypeScript mit Bindungen
Hier ist sie:
export interface IMyController {
myMethod:() => void;
}
class MyController implements IMyController {
$onInit(): void {
}
public myMethod(): void {
}
}
angular.module('mymodule').component(
'myCmp', {
controller: MyController,
controllerAs: 'vm',
templateUrl: 'myCmp.component.html',
bindings: {
data: '=',
label: '='
}
});
Kann mir jemand helfen?