Hi foysal,
In config method the first parameter "$routeProvider" is a default
function in angularjs. You cannot change it to '*$routeProvid*', or '
*$routeProvideraa*' instead you can use some other functions. And for the
parameter of function() you can give any value like *function($routeProv)
or function(routoPro) *. That parameter you will use inside the anonymous
function.
On Sun, Dec 20, 2015 at 12:34 PM, foysal foysal <[email protected]> wrote:
>
> I am new in AngularJS. I am learning AngularJS. In this regard I found
> below syntax in a tutorial.
>
> app.config(['$routeProvider',function($routeProvider){}]);
>
> Here .config() is a method. I am passing an array as parameter of this
> .config() method.*'$routeProvider'* and a *anonymous function* are two
> elements of that array. Am I right ??
>
> Can I make any change of the first element of the array, like
> *'$routeProvid'* or *'$routeProvideraa'* or*'$outeProvider'*??
>
> Can I make any change of the second element of the array, like
> *function($routeProv)* or*function($routeProviraa)* or
> *function($outeProvi)*??
>
> Thanks
>
> --
> 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 https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.