ANGULAR JS SOFTWARE ENGINEERING FOR WEB SERVICES HASAN FAIZAL K APRIL,2014

Similar documents
JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

JavaScript and Dreamweaver Examples

Copyright by Object Computing, Inc. (OCI). All rights reserved. AngularJS Testing

Yandex.Widgets Quick start

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

c. Write a JavaScript statement to print out as an alert box the value of the third Radio button (whether or not selected) in the second form.

Intell-a-Keeper Reporting System Technical Programming Guide. Tracking your Bookings without going Nuts!

Website Login Integration

Building Web Applications with HTML5, CSS3, and Javascript: An Introduction to HTML5

Making Web Application using Tizen Web UI Framework. Koeun Choi

<script type="text/javascript"> var _gaq = _gaq []; _gaq.push(['_setaccount', 'UA ']); _gaq.push(['_trackpageview']);

AngularJS in 60 Minutes

PLAYER DEVELOPER GUIDE

Cognitive defusion mobile application

the intro for RPG programmers Making mobile app development easier... of KrengelTech by Aaron Bartell

AngularJS for the enterprise

Laravel + AngularJS - Contact Manager

ACCESSING THE PROGRESS OPENEDGE APPSERVER FROM PROGRESS ROLLBASE USING JSDO CODE

Web Development 1 A4 Project Description Web Architecture

Outline. 1.! Development Platforms for Multimedia Programming!

Implementing Specialized Data Capture Applications with InVision Development Tools (Part 2)

Splunk Dashboard Framework What s New Nicholas Filippi Product Management, Splunk

Client-side Web Engineering From HTML to AJAX

Visualizing a Neo4j Graph Database with KeyLines

JavaScript: Introduction to Scripting Pearson Education, Inc. All rights reserved.

Lab 5 Introduction to Java Scripts

Spectrum Technology Platform

React+d3.js. Build data visualizations with React and d3.js. Swizec Teller. This book is for sale at

Dynamic Web-Enabled Data Collection

Configuring iplanet 6.0 Web Server For SSL and non-ssl Redirect

Chapter 1 Programming Languages for Web Applications

Client-side programming with JavaScript. Laura Farinetti Dipartimento di Automatica e Informatica Politecnico di Torino laura.farinetti@polito.

JavaScript Basics & HTML DOM. Sang Shin Java Technology Architect Sun Microsystems, Inc. sang.shin@sun.com

Website Implementation

The purpose of jquery is to make it much easier to use JavaScript on your website.

A Tale of the Weaknesses of Current Client-Side XSS Filtering

WebRTC_call. Authorization. function logintowsc() { var wscdemobaseurl = " window.location.href =

Script Handbook for Interactive Scientific Website Building

Your First Web Page. It all starts with an idea. Create an Azure Web App

Chapter 2: Interactive Web Applications

HTTP is Stateless. it simply allows a browser to request a single document from a web server. it remembers nothing between invoca9ons.

White Paper On. Single Page Application. Presented by: Yatin Patel

JavaScript: Arrays Pearson Education, Inc. All rights reserved.

Abusing HTML5. DEF CON 19 Ming Chow Lecturer, Department of Computer Science TuCs University Medford, MA

Hello World RESTful web service tutorial

LAB MANUAL CS (22): Web Technology

AJAX The Future of Web Development?

Internet Technologies

Website Planning Checklist

Technical University of Sofia Faculty of Computer Systems and Control. Web Programming. Lecture 4 JavaScript

Slide.Show Quick Start Guide

A Tale of the Weaknesses of Current Client-side XSS Filtering

Visualizing an OrientDB Graph Database with KeyLines

Setup The package simply needs to be installed and configured for the desired CDN s distribution server.

MASTERTAG DEVELOPER GUIDE

«W3Schools Home Next Chapter» JavaScript is THE scripting language of the Web.

HTML Basics(w3schools.com, 2013)

Short notes on webpage programming languages

2- Forms and JavaScript Course: Developing web- based applica<ons

django-wysiwyg Documentation

How to code, test, and validate a web page

Web-based Hybrid Mobile Apps: State of the Practice and Research Opportunities

oncourse web design handbook Aristedes Maniatis Charlotte Tanner

Direct Post Method (DPM) Developer Guide

Introduction to PhoneGap

WIRIS quizzes web services Getting started with PHP and Java

Example. Represent this as XML

Further web design: HTML forms

Multimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 03 Major Subject

Understanding Cross Site Scripting

InPost UK Limited GeoWidget Integration Guide Version 1.1

DEVELOPING THE UDUBS-IT PLATFORM AS A HYBRID APP WITH THE IONIC FRAMEWORK

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

CS412 Interactive Lab Creating a Simple Web Form

Overview. In the beginning. Issues with Client Side Scripting What is JavaScript? Syntax and the Document Object Model Moving forward with JavaScript

Schenker Privpak AB Telefon VAT Nr. SE Schenker ABs ansvarsbestämmelser, identiska med Box 905 Faxnr Säte: Borås

LAB 1: Getting started with WebMatrix. Introduction. Creating a new database. M1G505190: Introduction to Database Development

ICT 6012: Web Programming

Setting up an Apache Server in Conjunction with the SAP Sybase OData Server

Programming the Web 06CS73 SAMPLE QUESTIONS

Configuring IBM WebSphere Application Server 7.0 for Web Authentication with SAS 9.3 Web Applications

Modern browsers support many technologies beyond (X)HTML, CSS, and JavaScript.

Web Design and Databases WD: Class 7: HTML and CSS Part 3

What about MongoDB? can req.body.input 0; var date = new Date(); do {curdate = new Date();} while(curdate-date<10000)

Cross-Platform Tools

Transcription:

ANGULAR JS SOFTWARE ENGINEERING FOR WEB SERVICES HASAN FAIZAL K APRIL,2014

What is Angular Js? Open Source JavaScript framework for dynamic web apps. Developed in 2009 by Miško Hevery and Adam Abrons. Maintained by Google. AcDvely developed and supported

Why Use It? Problem: HTML works well with the StaDc Pages but it has no tool for web applicadons. SoluDon: To extend and use HTML vocabulary with some addidonal declaradons that can be used for developing web applicadons. Also AngularJS implements the Model View Controller (MVC). Single Page ApplicaDon (SPA)

Model View Controller (MVC) It is a SoPware PaQern for User Interface. Model is just the data behind the applicadon. View is the graphical representadon of the Model presented to the User. User is who interacts with the things on the screen and this interacdon in turn change the model through the controller. Controller reacts to the User interacdon with the set of logics present in it and send commands to the Model and View to update its state based on the interacdon.

MVC in Angular Model data in MVC represents the objects created in the JS. View is the Document Object Model Itself or the Objects that HTML creates in your browser. Controller is simply the classes of Java Script.

Two Way Data Binding View is updated automadcally when there is a change in Model. Similarly, Model is also updated when there is a change in View. No DOM manipuladon boilerplate is needed.

Illustration of Two Way Data Binding

AngularJS - Core Features DirecDves, Filters and Data Binding. View, Controllers and Scope Modules, Routes and Factories.

Directives, Filters and Data Binding

What are Directives? They teach HTML new tricks!

Using Directives and Data Binding Syntax: <!DOCTYPE html> <html ng- app> <head> <Dtle>AngularJs Tutorial</Dtle> </head> <body> Direc&ve </br> Direc&ve Data Binding Expression Name:<input type="text" ng- model="name"/> {{name}} <script src= "hqps://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"> </script>

Iterating with the ng-repeat Directive <!DOCTYPE html> <html ng- app> <head> <Dtle>AngularJs Tutorial</Dtle> </head> <body data- ng- init="names=['jhon','hasan','prashanth']"> Name: <br/> <input type="text" ng- model="name"/> {{name}} <br/> <ul> </ul> <li data- ng- repeat="personname in names">{{personname}}</li>

Using Filters <!DOCTYPE html> <html ng- app> <head> <&tle>angularjs Tutorial</&tle> </head> <body data- ng- init="customers=[{name:'jhon Smith',city:'Bielefeld'}, {name:'jhon Paul',city:'Detmold'}, {name:'daniel',city:'hamburg'}']"> Name: <br/> <input type="text" ng- model="name"/> <ul> <li data- ng- repeat="cust in customers filter:name">{{cust.name}} - {{cust.city}}</li> </ul> <script src="hvps://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"> </script> </body> <html>

View, Controller and Scope VIEW $SCOPE CONTROLLER Scope (View Model) is the binding between a Controller and a View

Creating View and Controller <!DOCTYPE html> <html ng- app> <head> </head> <br/> <ul> ul> </script> <&tle>angularjs Tutorial</&tle> <body > <div data- ng- controller="simple Controller"> Name: <input type="text" ng- model="name"/> <li data- ng- repeat="cust in customers filter:name">{{cust.name}} - {{cust.city}}</li></ <script src="hvps://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js">

Creating View and Controller <script> func&on SimpleController($scope){ $scope.customers = [{name: 'Jhon Smith', city: 'Bielefeld'}, {name:'jhon Paul', city:'detmold'}, {name:'daniel',city:'hamburg'} ]; } <html> </body>

Modules, Routes and Factories

Modules are Containers <html ng- app= modulename > Module Config Routes Filters and Factory Service Provider Value Controller

Crea2ng Modules with Controllers Var demoapp = angular.module( demoapp,[ ]) Define a Controller Dependency Injector demoapp.controller( simplecontroller,funcdon( $scope){ $scope.customers=[ ]; });

Using Factories and Services Var demoapp = angular.module( demoapp,[ ]).factory( simplefactory, funcdon(){ var factory ={}: var customers = [ ]; factory.getcustomers = funcdon(){ return customers; }; return factory; });

Using Factories and Services.controller( SimpleController, funcdon ($scope, simplefactory) { }); $scope.customers = simplefactory.getcustomers(); Factory Injected into Controller at run&me

Summary AngularJS provides a robust SPA framework for building robust client- centric applicadon.

References: hqps://angularjs.org hqps://docs.angularjs.org hqp://en.wikipedia.org/wiki/angularjs Thank You!!!