Thanks Sander.The above example is working fine. I want controller logic in
a separate file ,so I moved controller function to a separate file and
getting error at *Somecomponent.js *file.
MyController.js
function MyController()
{
}
On Monday, June 27, 2016 at 9:36:53 AM UTC+5:30, Sander Elias wrote:
>
> Hi S,
>
> Your code should just work. At least while you define your function as in
> this example by a function declaration. However, it will fail if you use an
> function expression to define your function.
>
> Regards
> Sander
>
--
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.