I know this post Angular 1.5 component attribute presence should answer my question but I did everything like they did and I still can t recovered my data! If you have any idea why.. :)
Component:
component('ficheOperation', {
templateUrl : 'operations/creerOperation.template.html',
bindings : {
idOp : '<'
},
controller : ['$scope', '$routeParams', '$location',
function ficheOperationController($scope, $routeParams, $location){
var self = this;
console.log(self.idOp);
}]
})
HTML :
<fiche-operation idOp="33"></fiche-operation>
the template is rightfully loaded but in my console all I get is a horrific "undefined".
Thx