Hi,
I use the following JSON attribute for directives, that allows me to
configure the directive from the html:
<my-drt config='{"useBold": false, "addButton": true, "identity": "id_02",
"msg": "scope_02"}' ></my-drt>
As long as you stick to using constant values, you can read this directly
in the link function (without using a $watch function)
My problem is, that 'fromJson' seems to fail silently when using angular
1.2.12, as shown in this plunk:
http://plnkr.co/edit/tC8LHvNKKKZAwrh8KwKs?p=preview
If you change the angular.js script tag in index.html
to: src="http://code.angularjs.org/1.0.8/angular.js", it all works again.
Any suggestions?
Br,
Claus Fjellø-Jensen
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.