Hello.
I was following tutorial on directive
by John Lindquist. It works with angular-1.0.0rc5.js, but throws exception with 1.0 release.
Looks like the way binding the variable is changed. I couldn't really follow the manual.
thanks in advance.
angular.module('components',[])
.directive('helloWorld', function(){
return{
restrict: 'E',
scope:{
name: 'bind',
},
template: '<span>Hello {{name}}..</span>'
}
});
angular.module('HelloApp', ['components'])
Error: Invalid isolate scope definition for directive helloWorld: bind
at Error (unknown source)
at file:///test/directive3/js/angular.js:4177:23
at forEach (file:///test/directive3/js/angular.js:117:20)