Questions tagged [mvw]

Model View Whatever (MVW) is an architectural pattern introduced by AngularJS, gathering MVC, MVVM and MVP.

Overview

MVW stands for Model-View-Whatever.
This pattern was introduced by AngularJS in 2012, to emphazise that AngularJS became enought flexible, and may as well be MVC than MVVM than MVP.

Links

Original post on Google+

Related tags

15 questions
366
votes
5 answers

What does MVW stand for?

Here's the content description for AngularJS page: AngularJS is what HTML would have been, had it been designed for building web-apps. Declarative templates with data-binding, MVW, MVVM, MVC, dependency injection and great testability story all…
slacktracer
  • 6,262
  • 6
  • 28
  • 33
14
votes
2 answers

Filter array in aurelia view

I am using aurelia and want to filter a collection (array) in view rather than in view model. I am trying the following syntax to do so:
Sayan Pal
  • 4,768
  • 5
  • 43
  • 82
4
votes
1 answer

Do AngularJS Controllers ever use more than one action/setup method?

Most of the examples of AngularJS controllers that I have seen, usually have a single action method that wires everything up for the view. On the other hand, in controllers that use the MVC pattern, rather than AngularJS's MVW, there are usually…
Mark Rogers
  • 96,497
  • 18
  • 85
  • 138
3
votes
1 answer

How should you define regular functions in AngularJS

I have some experience in AngularJS, but the fact that I can't figure out how to handle a regular function inside a AngularJS controller keeps bothering me. For the record I am talking about a function that handles parts of small business logic…
Stef
  • 162
  • 10
2
votes
0 answers

Angular 2 MVW - MVC, MVA, MVP, MVVM?

Angular 1 (AngularJS) was called an MVW-Framework. MVW stands for Model-View-Whatever. Is Angular 2 still MVW? Is MVW the same as MV*? I know that Whatever means that it could be a ViewModel or a Controller. Model and View is still the same. But can…
Micha93
  • 628
  • 1
  • 9
  • 22
2
votes
0 answers

What are the advantages/disadvantages to a declarative template? ViewModel approach?

When talking about a declarative syntax in angularjs we usually always bring up directives, and how we can pass $scope properties down into these directives for processing, DOM manipulation, data gathering and maybe a various combination of…
Nate-Wilkins
  • 5,364
  • 4
  • 46
  • 61
1
vote
0 answers

mean.js: commom variable across controllers and models

In mean.js I need to declare a common variable to be used across client controllers and server models (a same module) var _origens_list = [ { id: 1, tipo: "Manual1", nome: "Manual" }, { id: 2, tipo: "Automática", nome: "Metodo 1"…
defrancos
  • 11
  • 2
1
vote
2 answers

dynamic routing with array item in angularjs after filtering array

I have a problem with my angularjs app where my app is routing to the wrong page when using an ng-repeat array to determine the route. data looks like this and is accessed in the person controller: [ { "name":"AJ lastname", …
jmancherje
  • 6,439
  • 8
  • 36
  • 56
1
vote
1 answer

Compare MVVM WPF and MVC/MVVM AngularJS

MVVM Architure in WPF seems to be understandable. The model in the MVVM pattern encapsulates business logic and data.(It is a specific class who in charge of the business login and data) The view's responsibility is to define the structure and…
Elad Israeli
  • 131
  • 2
  • 11
1
vote
0 answers

Angularjs MV* (MVW) Design Pattern Involving ES6 - AngularJS

I have read these answers by Izhaki and Artem Platonov on Understanding Design Patterns and have some questions about this approach. They might be trivial, but I need some answers. The final answer by Itzhaki made it seem to me that Angularjs design…
1
vote
0 answers

Single controller to handle resolves in two routes, collection and single in angularjs

This might be a common problem that a angularjs dev will encounter, and I don't know if this was already been answered in the past, a brief searching doesn't give me results. Okay, I have 2 related routes, likes so: $stateProvider .state('user',…
Joey Hipolito
  • 3,108
  • 11
  • 44
  • 83
0
votes
1 answer

How to disable ListView selection change when item has changes in MVVM/MVW?

I have simple viewmodel: private List itemsList; public List ItemsList { get { return itemsList; } set { itemsList= value; NotifyPropertyChanged(); } } private Item selectedItem; public Item…
Kamil
  • 13,363
  • 24
  • 88
  • 183
0
votes
1 answer

How to Implement MVW Pattern in existing asp.net web form application

I am working on asp.net web form application which is consist of aspx(html), code behind and JavaScript code. Now we want to upgrade our application into new technology using asp.net MVW (Model View Whatever) pattern but the base line is that the…
Neeraj Kumar Gupta
  • 2,157
  • 7
  • 30
  • 58
0
votes
3 answers

how model and view are connected in backbone.js

I am new in Backbone.js and I keep failing to understand how the model and the view are connected. I played with Angular where things are pretty clear there, how model, view and controller are connected. I know Angular and Backbone are different…
slevin
  • 4,166
  • 20
  • 69
  • 129
0
votes
1 answer

Why is AngularJS considered MV*

I have worked with MVC on the back-end (Rails), and am currently working with MVC(MV*) on the front-end (Angular). I have seen Angular as considered an MV* pattern, but why is it considered that exactly? Using Angular, I understand the separation…