-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngController allows access to $attrs and $element. Where as ngView doesn't #2289
Comments
As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months. Please try the newest versions of Angular ( Thanks! |
@btford This was far more a clarification issue regarding how we should proceed things in another framework, where we wanted to address what was intentional of the two as it caused for quite some debate. |
I assume |
@btford That is our thought as well... but since We presume that that is simply because it potentially saves allot of code by treating the controller passed in with |
Reading thought the "MVC" Guide, I can see that both of the above directives is mentioned.
http://docs.angularjs.org/guide/dev_guide.mvc
It is discouraged to do DOM manipulation, but the above isn't really in sync as you can do just that from a controller added with
ngController
.http://jsfiddle.net/AKXez/79/
Where as it doesn't with
ngView
http://jsfiddle.net/d4ruE/120/
Because of the intend, I think it's the ngController that allows for something that we don't necessarily want. Obviously this might not really be something that you wan't to change, but I would like a confirmation on which one is straying from the intent.
/Jens
The text was updated successfully, but these errors were encountered: