>
> However, in a large application you do need structure. It's great if you 
> can some of that from a framework and its associated conventions. 
>
>
I totally agree. :-)  Especially when you have many developers working on a 
project, there is little time to rethink the global architecture all the 
time for everybody. It helps to have well-known best practices. At first 
sight, Angular gives you plenty of that. I felt the Angular concepts were 
so advanced, and given Igor Minar and all the very talented team, that they 
would have thought about everything up front. I mean, THEY should know how 
to structure real big apps that scales, no?
I got the first strike when I tried to use their "seed" project. It does 
not scale at all (from a development perspective), I think now about 
everybody understand that. Next I got bitten by trying to interconnect 
components. Like: Of course you cannot inject a "controller" through DI 
since it needs a $scope to function. Ah yes? What about creating a service 
that "controls" a directive?  Nope, that's not the angular-way.

I spent (and still spend) a lot of time (re)structuring the projects and 
even got to make totally illegal "interconnections" or pass obscure 
data/connection through the scope where it will be quite hard for the next 
person to guess/understand. AngularJS documentation attempts to give you 
the base information, but it does not actually tell you much about 
real-world problems I find. I find myself struggling to do stuff that I 
consider simple. 

Let's go concrete. Here's a fairly simple example:

Let's say we want to have some sort of notification area on the page that 
can display many notifications and is always available. About any piece of 
code should be able to access an API to "post" a new notification and even 
potentially get back a "Promise" to be resolved when the specific 
notification has been dismissed by the user or by some timeout.

How should this be structured?


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