Single Page Applications with AngluarJS Bill Wolff Rob Keiser 10.9.13.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Source: ojects/tabber/ ojects/tabber/
A guide to HTML. Slide 1 HTML: Hypertext Markup Language Pull down View, then Source, to see the HTML code. Slide 1.
ASHIMA KALRA.  WHAT IS HTML WHAT IS HTML  HTML TAGS HTML TAGS  FORMATTING TAGS FORMATTING TAGS.
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
Introduction to MVC Adding a View Page NTPCUG Tom Perkins, Ph.D.
HTML Companion. Lecture Objectives Learn about HTML. Know basic HTML tags.
USING ANGULARJS WITH SITEFINITY
Developing a Basic Web Page Posting Files on UMBC
Chapter 14 Introduction to HTML
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Slide 1 Today you will: think about criteria for judging a website understand that an effective website will match the needs and interests of users use.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
Configuring Social Media, Google Analytics, and Gadgets Lila Bronson Training Manager, OmniUpdate, Inc.
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
ASP.NET 5 Visual Studio 2015 Templates Bill Wolff Rob Keiser June 10, 2015.
Simple Pages for Omeka Lauren Dzura LIS
NetTech Solutions Working with Web Elements Lesson 6.
AngularJS Routing Routes, Route Parameters, Templates, Location, Navigation SoftUni Team Technical Trainers Software University
Bob German Principal Architect A New on SharePoint Development Building Light-Weight Web Parts with AngularJS
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
Tutorial 1: Browser Basics.

Session 1 SESSION 1 Working with Dreamweaver 8.0.
Copyright © Eric Liria Web Site Builder This application allows you to build and manage web sites. It provides the following functionnalities: use.
Cross Site Integration “mashups” cross site scripting.
INTRODUCTION TO HTML5 Semantic Layout in HTML5.  The new semantic layout in HTML5 refers to a new class of elements that is designed to help you understand.
Date : 3/3/2010 Web Technology Solutions Class: Application Syndication: Parse and Publish RSS & XML Data.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
Introduction to HTML. What is HTML?  Hyper Text Markup Language  Not a programming language but a markup language  Used for presentation and layout.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
Microsoft UI Stack Ronnie Saurenmann Technical Evangelist, Microsoft Switzerland
Controllers and Markup Controllers, $scope, Markup, Directives, Expressions, Binding, Filters, Validation SoftUni Team Technical Trainers Software University.
DYNAMIC HTML What is Dynamic HTML: HTML code that allow you to change/ specify the style of your web pages. Example: specify style sheet, object model.
Introduction to Angular James Kahng. Terms Framework Template/environment constructed in the language where you fill in details with code Library Set.
ANGULARJS A Gentle Introduction John Madison.NET User Group.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
HTML – The Basics Rebecca Shillingburg
Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5 Yeunyong Kantanet School of Information and Communication.
Learning Aim C.  Creating web pages involves many considerations.  In this section we will look at the different software tools you can use and how.
Creating Web Pages with Links, Images, and Embedded Style Sheets
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
Basic Web Page Design. Text book: HTML, XHTML, and CSS: Visual QuickStart Guide, Sixth Edition written by Elizabeth Castro. Software: Adobe® Dreamweaver®
PHP: Further Skills 02 By Trevor Adams. Topics covered Persistence What is it? Why do we need it? Basic Persistence Hidden form fields Query strings Cookies.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Tutorial 1 Getting Started with Adobe Dreamweaver CS5.
Making the Most of Search in SharePoint 2013 Christina Wheeler.
Building CSS in Visual Studio Slide 2 Introduction Using the different HTML (and other) Visual Studio Editors CSS tools.
Week 1: Introduction to HTML and Web Design
Getting Started With HTML
Angular JS and SharePoint
Creating a Theme From Scratch in Drupal
Web Basics: HTML/CSS/JavaScript What are they?
LMEvents SharePoint Portal How-to Guide
Microsoft Office Illustrated
Modern web applications
Intro to Web Development Links
Modern web applications
HyperText Markup Language
Web Technologies Computing Science Thompson Rivers University
Week 5: Recap and Portfolio Site
Web Programming and Design
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Presentation transcript:

Single Page Applications with AngluarJS Bill Wolff Rob Keiser

Lab Agenda Tonight is all HTML5, JS, CSS3 – No C# or.NET for this one Use Visual Studio, WebMatrix, or NotePad++ 10 step program – Start with one file rendering one page/view – Split work into multiple files – Wire up JSON feed from phillydotnet.org – Create multiple views with hashtag routes

Step 1 – Make a Web Site create web site single html file add title in heading simple markup with placeholders – proves that markup validates as html – no harm to the DOM

Step 2 – Link AngularJS from CDN add script links to bottom – explain location in DOM use Google CDN – show CDN distribution and versions add ng-app directive 2-3 lines hello phillydotnet – substitute in body – Substitute in title to show flexibility

Step 3 – Code a Controller add script section with simple ng-controller – explain directives – explain scopes add $scope variable to fill in some data use a button to call function with ng-click add style section with some formatting

Step 4 – Turn into Application break into 3 files – index.html – script.js – style.css edit script to make app module – angular.module and app.controller – service section or factory – show injection points

Step 5 – Retrieve JSON Data show PDN api and JSON structure explain cross site scripting and use of jsonp – keep it light implement code to retrieve data with $http – show result in browser tool network capture add simple loop ng-repeat directive – show track names – show camp name and date

Step 6 – Build View Navigation setup menu markup with tags – Home page – Collection of times with ng-repeat – Collection of tracks with ng-repeat ng-class for active page – Conditional style for active page ng-href for links – Hashtag URL with #/category/slug

Step 7 – Configure Routing configure $routeprovider – Use action parameter Pass $route into controller listen for $routeChangeSuccess using $on – calls render function which sets variables – variable change triggers classes and views code a render function – copies required $route data to $scope

Step 8 – Create Views setup multiple views with ng-switch – ng-switch-when directive triggers visibility – AngularJS only processes the active parts could also use partial pages – store as HTML fragments – load on demand

Step 9 – Render HTML Fragments show ng-bind-html directive – requires sanitize module and link – use for markup delivered in JSON payload – code camp content has this – session descriptions have this time and track loops have similar markup – use ng-repeat

Step 10 – Filter Views add filter logic for each time and track view – add | filter: to ng-repeat – associate with the slug Built-in and custom filters – | uppercase converts text

Resources AngularJS Site – – Visual Studio MVC Templates – c9c5f f-a6c295cd4f2b c9c5f f-a6c295cd4f2b – application/overview/templates/breezeangular- template application/overview/templates/breezeangular- template