Komponent AngularJS StackoverFlow
angular.module('myApp')
.component('component', {
templateUrl: 'component.html',
controller: function ComponentCtrl(){
this.innerProp = "inner"; //Tied to controller scope
},
controllerAs: 'vm', // Replaces scope, by default components use `$ctrl`
bindings: {
input: '=?'
}
});
Muddy Meerkat