Travellers :)
Here is an example as I think directive parameters should be working, but they don't. http://jsfiddle.net/z1m3gar5/
First directive uses
.directive('myDirective1', function () {
return {
restrict: 'E',
scope: {
options: '@'
},
templateUrl: 'MyDirective1.html',
controller: function ($scope) {},
}
})
...
<div>{{ options }}</div>
The other one uses
.directive('myDirective2', function () {
return {
restrict: 'E',
scope: {
options: '='
},
templateUrl: 'MyDirective2.html',
controller: function ($scope) {},
}
})
...
<div>{{ options.param }}</div>
First definition works just fine, the second doesn't. What do I miss? Thanks