MVC question

55 views
Skip to first unread message

Anderson Scouto da Silva

unread,
Sep 22, 2014, 9:05:38 PM9/22/14
to ang...@googlegroups.com
Good evening, gentlemen. 

I have a question, in most MVC frameworks (not javascript) that are MVC, each controller has various actions, for example, Yii has a controller "FooController" and this controller has "actionCreate", "actionDelete", etc... You can do this in angularjs? I believe in large applications that would be useful to better organize the project (personal opinion). 

Thank you.

Stephen Friedrich

unread,
Sep 23, 2014, 9:40:42 AM9/23/14
to ang...@googlegroups.com
Not sure what your question is.

Angular has no predefined concept of "controller actions".
Usually you simply set functions to the controller's scope.

If you are talking about explicit CRUD support, angularjs has $resource to deal with restful backend APIs.
Plus angularjs 2.0 will probably have a separate persistence layer.

Anderson Scouto da Silva

unread,
Sep 23, 2014, 4:49:05 PM9/23/14
to ang...@googlegroups.com
Hello, good afternoon. 

Yes, it was even though I was lost, a controller is like a helper and not the explicit action, for example, on a php framework, if you access the url '/charging/generate', is accessing, therefore, the controller 'charging' and the action 'generate'. 

Thank you.

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/PiU8TN0r48w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages