app.controller('simectrl1',function()
{
   this.name = idan;
});

app.controller('simectrl2',function($scope)
{
   $scope.name = idan;
});

I would like to know what is the diffrence between the 2 controllers.
what the effect that the injected $scope gave and if i'm not inseret in 
like in simectrl2 what it can cause in the future of this controller 

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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to