Ho Mn,

You are defining/requestion your controller twice, so you have 2 instances 
of your controller. Those will not give the same results.
The first one comes from the ngController, the second one is the one you 
request in your directive. They run the same code, but different instances.


Regards
Sander

-- 
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.

Reply via email to