Angular (JS): A Framework for Dynamic Web Pages

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

ANGULAR JS ROBERTO GUTIERREZ. WHAT IS IT? Toolset for building the framework for application development Angular models are plain old javascript Developed.
Validation in Angular 1.3 And other angular tidbits.
@lestersconyers #spsevents #spsphx SPS EVENTS PHX SharePoint and Angular Sitting in a Tree… LESTER SCONYERS.
Single Page Applications with AngluarJS Bill Wolff Rob Keiser
SUNY Polytechnic Institute CS 490 – Web Design, AJAX, jQueryAngularJS AngularJS is a client-side JavaScript Framework for adding interactivity to HTML.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
Design Principles of \ Miško Hevery Father of AngularJS.
Bob German Principal Architect A New on SharePoint Development Building Light-Weight Web Parts with AngularJS
Controllers and Markup Controllers, $scope, Markup, Directives, Expressions, Binding, Filters, Validation SoftUni Team Technical Trainers Software University.
Introduction to Angular James Kahng. Terms Framework Template/environment constructed in the language where you fill in details with code Library Set.
SE-2840 Dr. Mark L. Hornick1 AngularJS A library for JavaScript.
Understand haxejs-angular app How to write app in OOP(Haxe) and Dependency Injection Way(Angular)?
Preliminary Software design and Development a Welcome to our Coding Day session one.
AngularJS. What is AngularJS  Javascript Framework  MVC  for Rich Web Application Development  by Google.
Chapter 5 Angularjs. Content Overview How to program with Angularjs Directives Expressions Controllers Filters HTML DOM Forms and Includes Ajax Scopes.
Benefits of choosing AngularJS to develop Next Generation Applications A few years back, the pattern of present day AngularJS was being formed. Currently.
Angular JS and SharePoint
Web Technologies Computing Science Thompson Rivers University
Javascript and Dynamic Web Pages: Client Side Processing
ITM352 PHP and Dynamic Web Pages: Server Side Processing 1.
Using JavaScript to Show an Alert
WWU Hackathon May 6 & 7.
CIS 388 Internet Programming
Creating Lightning Fast Apps Using AngularJS
Ember, AngularJS, Backbone.js, Knockout, … eeem??
Extra Course
Kendo UI Builder Bob Brennan
Javascript and AJAX Willem Visser RW334.
CHAPTER 9 APIS. CHAPTER 9 APIS WHAT IS AN API?
Introduction to CodeIgniter (CI)
AngularJS A Gentle Introduction John
Angular JS Training | Angular JS online Training at GoLogica
AngularJS intro L. Grewe.
In SharePoint A Practical Guide.
CMPE 280 Web UI Design and Development November 7 Class Meeting
Not Sure how you Should React
Jessica Betts, Sophia Pandey, & Ryan Amundson
AngularJS and SharePoint 2013: Lessons Learned from the Trenches
Training Institute Pune AngularJS Course. What is AngularJS ? AngularJS is a structural framework that is used in Single Page HTML for declaring dynamic.
Angularjs Interview Questions and Answers By Hope Tutors.
Top Reasons to Choose Angular. Angular is well known for developing robust and adaptable Single Page Applications (SPA). The Application structure is.
AngularJS and SharePoint Chris Douglas Senior SharePoint Developer InfoReliance Web: Twitter:
JavaScript an introduction.
MEAN stack L. Grewe.
AngularJS intro L. Grewe.
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
Introduction to AngularJS
CMPE 280 Web UI Design and Development January 30 Class Meeting
Creating Lightning Fast Apps Using AngularJS
AngularJS and SharePoint I Chris Douglas Senior SharePoint Developer ECS Web:
Secure Web Programming
CMPE 280 Web UI Design and Development January 29 Class Meeting
What is Perl? PERL--Practical Extraction and Report Language
Javascript and JQuery SRM DSC.
RESTful Web Services.
Creating Lightning Fast Apps Using AngularJS
ASP.NET MVC Web Development
A JavaScript framework
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
PART 1.
Web Technologies Computing Science Thompson Rivers University
Web Client Side Technologies Raneem Qaddoura
Top-Rated AngularJs Development Company in India
Web Programming and Design
05 | An Introduction to AngularJS
CMPE 280 Web UI Design and Development November 8 Class Meeting
CMPE 280 Web UI Design and Development August 27 Class Meeting
AJAX By Prof. B.A.Khivsara
Adios alert() Using innerHTML Using an empty section
Presentation transcript:

Angular (JS): A Framework for Dynamic Web Pages B. Ramamurthy 11/20/2018

What is Angular? Angular (JS) is a JavaScript framework AngularJS version 1.0 was released in 2012. Miško Hevery, and Adam Abrons, Google employees, started to work with AngularJS in 2009. The project is now officially supported by Google. It implements Model-View-Controller (MVC) design principle. It offers an elegant and intuitive way to add dynamic content to a web/mobile application /page. 11/20/2018

Hello World in Static HTML <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <h1>Hello World</h1> </div> </body> </html> 11/20/2018

Hello World in Angular (Dynamic) <html> <head> <meta charset="utf-8"> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> </head> <body> <div ng-app=""> <input type="text" ng-model="name"> <h1>Hello {{name || 'world'}} </h1> </div> </body> </html>

Another example (dynamic filter) <div ng-app="myApp" ng-controller="myCtrl"> Name: <br /> <input type="text" ng-model="name" /> <ul> <li ng-repeat="cust in customers| filter:name | orderBy:'city'" >{{cust.name |uppercase}} - {{cust.city|lowercase}}</li> </ul> </div> <script> var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.customers = [ {name: 'Bina', city:'Amherst'}, {name:'Charles', city:'Buffalo'}, {name:'Sophie', city:'Long Island'}, {name:'Zach',city:'Syracuse'}]; }); </script> 11/20/2018

AngularJS: Nuts and Bolts Where can read more about it to prepare myself? Reference: https://www.tutorialspoint.com/angularjs/ AngularJS is a Javascript (library) framework for creating Rich Internet Applications (RIA) with dynamic content injection The client side JavaScript application allows for elegant development using Model View Controller (MVC) model It is open source and an active community It scales well for large applications 11/20/2018

Key Concepts - MVC Model represents the data representing the application. View generates output based on the model. Controller is works with model as well as the view updating them according to user interaction or other stimulus (say from sensors). Controlls interaction between Model and View. 11/20/2018

Lets Write a Simple AngularJS program Include AngularJS API Point to AngularJS app (ng-app) and controller (ng-controller) Add a view (setup the html tags and placeholders) Add a js controller Execute Remember angular commands begin with ng- Example: ng-app, ng-repeat 11/20/2018

Lets implement the steps (1 ) <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"> </script> </head> 11/20/2018

Define ng-app and ng-controller (2) <body ng-app = “myApp” > <div ng-controller=“myCntrl”> </div> </body> 11/20/2018

Setup Model, View, ng-operations (filters) (3) Name: <br /> <input type="text" ng-model="name" /> <ul> <li ng-repeat="cust in customers| filter:name | orderBy:'city'" >{{cust.name |uppercase}} - {{cust.city|lowercase}}</li> </ul> 11/20/2018

Write controller script connecting the model and view (4) <script> var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.customers = [ {name: 'Bina', city:'Amherst'}, {name:'Sophie', city:'Long Island'}, {name:'Charles', city:'Buffalo'}, {name:'John',city:'Akron'}, {name:'Zach',city:'Syracuse'}]; }); </script> 11/20/2018

Lets load the application and execute it (5) Into your editor (Atom, sublime or whatever) 11/20/2018

Functional Concepts Data-binding : automatic synchronization of data between model and view components. Scope: are glue between controller and view Controller: composed of JS functions and are bound to a specific Scope Filters: to select a subset of items from an array and return a new array Many more.. 11/20/2018