SlideShare a Scribd company logo
Client Side MVC & Angular
Client Side MVC & Angular
Client Side MVC & Angular
represent knowledge. A model could be a single 
object, or it could be some structure of objects. 
A is a (visual) representation of its model. It would 
ordinarily highlight certain attributes of the model and 
suppress others. 
A is the link between a user and the system. It 
provides the user with input by arranging for relevant views 
to present themselves in appropriate places on the screen.
Client Side MVC & Angular
The classes which are used to store and manipulate state, 
typically in a database of some kind. 
The user interface bits (in this case, HTML) necessary to render 
the model to the user. 
The brains of the application. The controller decides what the 
user's input was, how the model needs to change as a result of 
that input, and which resulting view should be used.
Client Side MVC & Angular
(Past) 
Browser 
HTTP Request Server 
+ 
Dispatcher 
C 
V M
(Present) 
Browser Server 
V M 
SPA HTML5 - JS 
Static content 
RESTful Endpoints 
Event publisher 
Request / response 
JSON - REST 
Web Sokets 
C
Client Side MVC & Angular
Client Side MVC & Angular
client-side MVC framework 
for dynamic web apps; 
perfect for building CRUD 
application: data-binding, 
templating, form validation, 
routing, dependency 
injection, reusable 
components; 
designed to be testable: 
unit-testing, end-to-end 
testing, mocks.
Declarative HTML approach 
2 way data binding 
reusable components - directives 
MVC / MVVM design pattern 
dependency injection 
routing 
templating 
animations 
form validation 
E2E integration testing / unit testing 
I18n & I10n
<!DOCTYPE html> 
<html ng-app="myApp"> 
<head> 
<title>Angular app</title> 
<script src="path/to/angular.js"> 
{{name}} 
//app.js 
angular 
.module('myApp', []) 
.controller('MyCtrl', function($scope){ 
$scope.name = 'World'; 
}); 
Plunker Example
Example Link
Browser loads the page and creates the DOM; 
Browser triggers DOMContentLoaded event; 
Angular looks into the DOM for the attribute 
and if the attribute it's found Angular will: 
load the module associated with the directive; 
create the application injector; 
compile the DOM into a Live View: 
: traverse the DOM and collect all of 
the directives - the result is a linking function; 
: combine the directive with a scope and 
produce a .
automatic propagation of data changes; 
model it's the single-source-of-truth; 
digest cycle; 
the view it's updated automatically when 
the model is changed; 
model is updated automatically when a 
value in the View has changed. 
no DOM manipulation needed.
Implement Angular data 
binding mechanism

More Related Content

PDF
JavaScript Fetch API
PPTX
PPTX
Dom(document object model)
PPT
OO Development 1 - Introduction to Object-Oriented Development
ODP
Spring User Guide
PPTX
Asp.net MVC training session
JavaScript Fetch API
Dom(document object model)
OO Development 1 - Introduction to Object-Oriented Development
Spring User Guide
Asp.net MVC training session

What's hot (20)

ODP
Introduction to Spring Framework and Spring IoC
PPTX
Ajax and Jquery
PPT
Mvc architecture
PDF
ReactJS presentation
PDF
React js
PPTX
Angular js PPT
PPTX
JSP Directives
PPTX
Uml Diagrams for Web Developers
PDF
Understanding react hooks
PPTX
What is Ajax technology?
PDF
Design patterns
PPTX
PPTX
What is component in reactjs
PPTX
ASP.NET State management
PPTX
Spring Framework
PPTX
Spring boot
PPT
Ajax Ppt 1
PDF
Basics of JavaScript
PPT
jQuery Ajax
PPTX
Maven tutorial
Introduction to Spring Framework and Spring IoC
Ajax and Jquery
Mvc architecture
ReactJS presentation
React js
Angular js PPT
JSP Directives
Uml Diagrams for Web Developers
Understanding react hooks
What is Ajax technology?
Design patterns
What is component in reactjs
ASP.NET State management
Spring Framework
Spring boot
Ajax Ppt 1
Basics of JavaScript
jQuery Ajax
Maven tutorial
Ad

Viewers also liked (8)

PDF
Einführung in React
PPTX
ASP.NET MVC, AngularJS CRUD for Azerbaijan Technical University
PPTX
Introduction of ASP.NET MVC and AngularJS
PDF
AngularJS 101 - Everything you need to know to get started
PDF
PMP Chap 7 - Project Cost Management - Part 2
PDF
PMPProcessGroupTasks
PDF
PMBOK-5th ed: PMP- Flashcards Part1/5
PDF
PMP Chap 7 - Project Cost Management - Part 1
Einführung in React
ASP.NET MVC, AngularJS CRUD for Azerbaijan Technical University
Introduction of ASP.NET MVC and AngularJS
AngularJS 101 - Everything you need to know to get started
PMP Chap 7 - Project Cost Management - Part 2
PMPProcessGroupTasks
PMBOK-5th ed: PMP- Flashcards Part1/5
PMP Chap 7 - Project Cost Management - Part 1
Ad

Similar to Client Side MVC & Angular (20)

PDF
Itroducing Angular JS
KEY
Sugarcoating your frontend one ViewModel at a time
KEY
AngularJS for designers and developers
PDF
AngularJS in Production (CTO Forum)
PDF
Javascript Client & Server Architectures
PDF
5 benefits of angular js
PPT
Angularjs for kolkata drupal meetup
PDF
AngularJS Beginner Day One
PDF
Angular js gtg-27feb2013
ODP
Angularjs
PPTX
AngularJS Anatomy & Directives
PDF
AngularJS Workshop
PPTX
Learning AngularJS - Complete coverage of AngularJS features and concepts
PDF
Building Better Web Apps with Angular.js (SXSW 2014)
PPTX
Intro to AngularJs
PDF
Introduction to Angular Js
PDF
AngularJS Basics and Best Practices - CC FE &UX
PPTX
Angular js for Beginnners
PPTX
Introduction to AngularJs
PDF
Introduction To Angular.js - SpringPeople
Itroducing Angular JS
Sugarcoating your frontend one ViewModel at a time
AngularJS for designers and developers
AngularJS in Production (CTO Forum)
Javascript Client & Server Architectures
5 benefits of angular js
Angularjs for kolkata drupal meetup
AngularJS Beginner Day One
Angular js gtg-27feb2013
Angularjs
AngularJS Anatomy & Directives
AngularJS Workshop
Learning AngularJS - Complete coverage of AngularJS features and concepts
Building Better Web Apps with Angular.js (SXSW 2014)
Intro to AngularJs
Introduction to Angular Js
AngularJS Basics and Best Practices - CC FE &UX
Angular js for Beginnners
Introduction to AngularJs
Introduction To Angular.js - SpringPeople

More from Alexe Bogdan (8)

PDF
Angular promises and http
PDF
Dependency Injection pattern in Angular
PDF
HTML & JavaScript Introduction
PDF
Angular custom directives
PDF
Angular server-side communication
PDF
Angular Promises and Advanced Routing
PDF
AngularJS - dependency injection
PDF
AngularJS - introduction & how it works?
Angular promises and http
Dependency Injection pattern in Angular
HTML & JavaScript Introduction
Angular custom directives
Angular server-side communication
Angular Promises and Advanced Routing
AngularJS - dependency injection
AngularJS - introduction & how it works?

Recently uploaded (20)

DOCX
Unit-3 cyber security network security of internet system
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
Testing WebRTC applications at scale.pdf
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PPT
tcp ip networks nd ip layering assotred slides
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PDF
Triggering QUIC, presented by Geoff Huston at IETF 123
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPTX
Introduction to Information and Communication Technology
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PPTX
Funds Management Learning Material for Beg
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
Unit-3 cyber security network security of internet system
Job_Card_System_Styled_lorem_ipsum_.pptx
Testing WebRTC applications at scale.pdf
RPKI Status Update, presented by Makito Lay at IDNOG 10
tcp ip networks nd ip layering assotred slides
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
522797556-Unit-2-Temperature-measurement-1-1.pptx
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Decoding a Decade: 10 Years of Applied CTI Discipline
An introduction to the IFRS (ISSB) Stndards.pdf
INTERNET------BASICS-------UPDATED PPT PRESENTATION
Unit-1 introduction to cyber security discuss about how to secure a system
Triggering QUIC, presented by Geoff Huston at IETF 123
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
Introduction to Information and Communication Technology
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Introuction about WHO-FIC in ICD-10.pptx
Funds Management Learning Material for Beg
Design_with_Watersergyerge45hrbgre4top (1).ppt

Client Side MVC & Angular

  • 4. represent knowledge. A model could be a single object, or it could be some structure of objects. A is a (visual) representation of its model. It would ordinarily highlight certain attributes of the model and suppress others. A is the link between a user and the system. It provides the user with input by arranging for relevant views to present themselves in appropriate places on the screen.
  • 6. The classes which are used to store and manipulate state, typically in a database of some kind. The user interface bits (in this case, HTML) necessary to render the model to the user. The brains of the application. The controller decides what the user's input was, how the model needs to change as a result of that input, and which resulting view should be used.
  • 8. (Past) Browser HTTP Request Server + Dispatcher C V M
  • 9. (Present) Browser Server V M SPA HTML5 - JS Static content RESTful Endpoints Event publisher Request / response JSON - REST Web Sokets C
  • 12. client-side MVC framework for dynamic web apps; perfect for building CRUD application: data-binding, templating, form validation, routing, dependency injection, reusable components; designed to be testable: unit-testing, end-to-end testing, mocks.
  • 13. Declarative HTML approach 2 way data binding reusable components - directives MVC / MVVM design pattern dependency injection routing templating animations form validation E2E integration testing / unit testing I18n & I10n
  • 14. <!DOCTYPE html> <html ng-app="myApp"> <head> <title>Angular app</title> <script src="path/to/angular.js"> {{name}} //app.js angular .module('myApp', []) .controller('MyCtrl', function($scope){ $scope.name = 'World'; }); Plunker Example
  • 16. Browser loads the page and creates the DOM; Browser triggers DOMContentLoaded event; Angular looks into the DOM for the attribute and if the attribute it's found Angular will: load the module associated with the directive; create the application injector; compile the DOM into a Live View: : traverse the DOM and collect all of the directives - the result is a linking function; : combine the directive with a scope and produce a .
  • 17. automatic propagation of data changes; model it's the single-source-of-truth; digest cycle; the view it's updated automatically when the model is changed; model is updated automatically when a value in the View has changed. no DOM manipulation needed.
  • 18. Implement Angular data binding mechanism