Hi Sander,

Thank you for answering. I still find it confusing "DI container is called 
injector", the way I understand it is anything that contains DI is an 
injector, in addition to an explicit service called $injector. The same way 
there is a concept of Service in Angular which can be created by using 
factory or service, also very confusing because there is a concept of 
service and a component called service. I will just keep reading on.

You say that there are a number of way to create $injected property. With 
regards to the diagram, which one was used from your list? Is it number 3? 
Im focusing so much on DI because I gather it is crucial to understanding 
how Angular works.


>    1. Create it manually. 
>    someController.$inject=['currencyConverter']
>    function someController(currencyConverter) {...}
>    
>    2. Use a tool like ngAnnotate
>    3. provide an array instead of a function. Angular will convert this 
>    to 1.
>    4. angular analyzes the function signature. This is the most 
>    error-prone method, and surely doesn't work while minifying your source
>    
>
>
>

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