I have to make some directive in an AngularJS app and I need to pass variables from my controller to the directives.
The problem is that I have to use a directive syntax who is not common for me, and I don't know where I have to declare my variable in the directive with this syntax.
Here is my directive :
angular
.module('thermofluor')
.directive('tablePlate', tablePlate)
tablePlate.$inject = ['$timeout', '$q'];
function tablePlate( $timeout, $q )
{
var directive = {
link: link,
restrict: 'E',
template: '<h1>TEST</h1>'
};
return directive;
function link(scope, element ) {
return;
}
}
Anyone have an idea ?
Thanks.