Jessica Betts, Sophia Pandey, & Ryan Amundson

Slides:



Advertisements
Similar presentations
AJAX Development By Gary Mandela December 26,
Advertisements

John Culviner johnculviner.com DEMO CODE:
Validation in Angular 1.3 And other angular tidbits.
@lestersconyers #spsevents #spsphx SPS EVENTS PHX SharePoint and Angular Sitting in a Tree… LESTER SCONYERS.
USING ANGULARJS WITH SITEFINITY
JavaServer Pages TM Introduce by
SUNY Polytechnic Institute CS 490 – Web Design, AJAX, jQueryAngularJS AngularJS is a client-side JavaScript Framework for adding interactivity to HTML.
Introduction Marko Marić, Danulabs
Bob German Principal Architect A New on SharePoint Development Building Light-Weight Web Parts with AngularJS
Jonathan Canfield Mavin Lisa Giss Professor Kenytt D. Avery
Microsoft Virtual Academy Stacey Mulcahy | Technical Evangelist Christopher Harrison | Content Developer.
Introduction to Angular James Kahng. Terms Framework Template/environment constructed in the language where you fill in details with code Library Set.
Canopy walk through Single-Page Apps (SPAs) Benjamin Howarth Freelancer, Code Gecko Umbraco UK Festival, Fri 30 th Oct 2015 CODE GECKO.
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)?
Rich Internet Applications 2. Core JavaScript. The importance of JavaScript Many choices open to the developer for server-side Can choose server technology.
Chapter 15 Introducing jQuery Part 1. What is JavaScript? A programming language to add dynamic features to a web page. Client side.
Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5 Yeunyong Kantanet School of Information and Communication.
Learn AngularJS by Building 10 projects. Introduction to AngularJS An Open source web application framework by Google Written in JavaScript offers complete.
Getting Started with Angular 2 and TypeScript Nebraska.Code() 2016 Spencer Schneidenbach Ryvit.
Best Web Technologies for
AngularJS. What is AngularJS  Javascript Framework  MVC  for Rich Web Application Development  by Google.
AngularJS and SharePoint
© Luxoft Training. All rights reserved AngularJS Introduction.
Chapter 5 Angularjs. Content Overview How to program with Angularjs Directives Expressions Controllers Filters HTML DOM Forms and Includes Ajax Scopes.
DHTML.
Angular vs React John
Angular JS and SharePoint
Angular 4 + TypeScript Getting Started
API (Application Program Interface)
Creating Lightning Fast Apps Using AngularJS
Extra Course
Modern Web: Single Page Applications
Kendo UI Builder Bob Brennan
Javascript and AJAX Willem Visser RW334.
AngularJS A Gentle Introduction John
In SharePoint A Practical Guide.
CMPE 280 Web UI Design and Development November 7 Class Meeting
By Gary Mandela December 26, 2006
PHP / MySQL Introduction
User Interface / User Experience Demo
The Cliff Notes Version
Top 5 Javascript Frameworks
AngularJS and SharePoint 2013: Lessons Learned from the Trenches
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.
Advanced Topics in Concurrency and Reactive Programming: MEAN Stack
MEAN stack L. Grewe.
Step by Step - AngularJS
Angular (JS): A Framework for Dynamic Web Pages
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
Introduction to AngularJS
5 Leading web development Framework is good for developing a Secure Website.
Creating Lightning Fast Apps Using AngularJS
Secure Web Programming
How AngularJS Development Services different from other Framework - Kunsh Technologies.
INTRODUCTION TO By Stepan Vardanyan.
AngularJS Michael Kang August 20th 2015.
JavaScript CS 4640 Programming Languages for Web Applications
Creating Lightning Fast Apps Using AngularJS
An introduction to jQuery
Angular 2 Michael C. Kang.
PART 1.
An introduction to jQuery
Introduce to Angular 6 Present by: Võ Văn Hào
05 | An Introduction to AngularJS
Angular.
The Future is Now with ASP.NET Core 3.0
CMPE 280 Web UI Design and Development November 8 Class Meeting
JavaScript CS 4640 Programming Languages for Web Applications
Presentation transcript:

Jessica Betts, Sophia Pandey, & Ryan Amundson AngularJS Jessica Betts, Sophia Pandey, & Ryan Amundson

Outline AngularJS History What, Who, Why Pros and Cons Modules Directives Scope & Controllers Dependency Injection Two Way Binding Filtering Services, Factories and Providers AngularJS version of MVC Asynchronous

AngularJS History Miško Hevery started work on AngularJS in 2009 Google employee Initial release was on October 20th, 2010 AngularJS version 1.0 was released in 2012 Successful - now officially supported by Google

What is AngularJS? Structural framework for dynamic web apps Use HTML as a template language Extend HTML's syntax - for web apps AngularJS - open source JavaScript framework NodeJS - Backend library, platform on Google Jquery - Frontend library, less features ReactJS - very popular - used by Facebook & Instagram structural framework for dynamic web apps. HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. Angular's data binding and dependency injection eliminate much of the code you would otherwise have to write.

Why AngularJS? AngularJS eliminates writing lots of code Allows code reuse Faster single page applications (SPA’s) Useful features Databinding Filters Flexibility

Module “Main() method” in other apps Defines an application Container Good for organizing

Directives Extended html attributes prefixed with ng- Built in directives Ng-repeat (item template in .NET) Ng-pattern Ng-controller Ng-href Ng-model Define your own (code sample)

Scope Controller Object with properties and methods Binds html and Javascript Syntax : $scope Controller Allows you to modify the $scope object Uses ng-controller directive

Create a Module: Add a Controller: <script> var app = angular.module("myApp", []); </script> <div ng-app="myApp" ng-controller="myCtrl"> {{ message }} </div> <script> var app = angular.module("myApp", []); app.controller("myCtrl", function($scope) { $scope.message = "Pigs can fly"; }); </script> http://www.w3schools.com/angular/tryit.asp?filename=try_ng_controller_property

Two Way Binding Updates from model affect controller and vice versa {{ $scope.dataFromController }} && ng-model 2-way binding demo http://www.angularjshub.com/code/examples/basics/02_TwoWayDataBinding_HTML/example-section-container.php?url=index.demo.php

Filtering Allows you to transform data <div ng-app="myApp" ng-controller="personCtrl"> <p>The name is {{ lastName | uppercase }}</p> </div> <script> angular.module('myApp', []).controller('personCtrl', function($scope) { $scope.firstName = "John", $scope.lastName = "Doe" }); </script> http://yorktown. cbe.wwu.edu/san dvig/angularJS/f ilterGeekProduct s.php

Dependency Injection Sending of service/dependency to client Design pattern Advantages: Separates creation from behavior Externalize configuration details Easier for testing Reduces coupling between classes and dependencies Disadvantages: more difficult to trace or read More upfront development(Injected rather than created) dependence on dependency injection frameworks

Services, Factories and Providers Objects used for dependency injection Built-in services Separation of concerns Controller communication Provider Only service to pass into config Use to provide module wide configuration prior to availability Service Similar to classes creates an object with ‘new’ keyword Referred to as ‘this’ Factory Create an object and returns the object

AngularJS Version of MVC MVC?......MVVM?....MVW?? Model-View-ViewModel $scope service

Asynchronous Callbacks Non-blocking Allows code execution to continue while waiting Allows multitasking in code