[AngularJS] Re: A lot of questions about directive's optional attributes

2013-12-23 Thread Jesus Rodriguez
Gracias Daniel, Angular is good because it don't force you to follow any convention so you have the liberty of doing things like you want. That could be a double-edge sword. That liberty is good but sometimes it is hard to pickup some conventions that are good to follow. Your explanation was r

[AngularJS] Re: A lot of questions about directive's optional attributes

2013-12-23 Thread Daniel Tabuenca
The difference between declaring stuff in the scope: {} vs just reading the attributes inside the link function has to do primarily with whether we want to keep track of the values as they change. Things declared in the isolate scope will automatically get watches created to keep them in sync