Hi Billy,

Well, this one did "work".
Ok, it looks like you found a bug. While this needs some attention I took a 
step back and looked at what you were trying to do. 
Then it occurred to me you are trying to solve business logic with 
directives. While possible it is not a good idea, and it will become an 
maintenance nightmare.
Have a look at this: http://plnkr.co/edit/7F3nlgtxT9sx2FJ4isMF?p=preview
I moved all the logic to the controller. The view will follow the data. The 
logic does not care about the html at all! 
Perhaps it helps to think of the html/dom as write-only. If you ever feel 
the need to read anything out of the DOM/HTML you have a code smell. 
In angular apps your model/data rules, and the view/html will follow the 
data.

Does this help a bit? Does it make sense to you?

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