Top "Model-view-controller" questions

Model–View–Controller (MVC) is an architectural pattern used in software engineering.

How to add a hook to the application context initialization event?

For a regular Servlet, I guess you could declare a context listener, but for Spring MVC would Spring make this …

spring model-view-controller applicationcontext
Can I get the name of the current controller in the view?

Is there a way to figure out what the current controller is from within the view? For an example of …

ruby-on-rails model-view-controller view controller
Showing alert in angularjs when user leaves a page

I'm an angularjs new bee. I'm trying to write a validation which alerts the user when he tries to close …

javascript model-view-controller angularjs angularjs-directive
Separation of business logic and data access in django

I am writing a project in Django and I see that 80% of the code is in the file models.py. …

python django model-view-controller data-access-layer business-logic-layer
What exactly is the difference between Web API and REST API in MVC?

I have a little understanding on REST API. As per my knowledge it is used to work with HTTP services(…

c# rest api asp.net-web-api model-view-controller
Add directives from directive in AngularJS

I'm trying to build a directive that takes care of adding more directives to the element it is declared on. …

javascript angularjs model-view-controller mvvm angularjs-directive
What is MVC and what are the advantages of it?

I found What are mvp and mvc and what is the difference but it didn't really answer this question. I've …

model-view-controller design-patterns
How to include view/partial specific styling in AngularJS

What is the proper/accepted way to use separate stylesheets for the various views my application uses? Currently I'm placing …

css model-view-controller angularjs
If else statements in .html.erb in views

In rails, I often run into the situation where inside the views I'll do something like <% if @some_condition_…

ruby-on-rails ruby model-view-controller
Android How do I correctly get the value from a Switch?

I'm creating a Android application which uses a Switch. I'm trying to listen for changes and get the value when …

android model-view-controller actionlistener