I wrote my custom directive in HTML like this :
>
<div my-directive = {{pics}}></div>
where
$scope.pics
stores my JSON data .
Then in my directive i wrote the following to access the model .
attrs.$observe('myDirective', function(value){
console.log(value);
});
and it works !
Kindly correct me if I am wrong.
--
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/d/optout.