Top Banner
Wildhacks Hack Angular Wildly! Todd Warren, May 17, 2017
12

Hack angular wildly

Jan 22, 2018

Download

Software

Todd Warren
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Hack angular wildly

Wildhacks

Hack Angular Wildly!

Todd Warren, May 17, 2017

Page 2: Hack angular wildly

Wildhacks

Agenda

• A brief history of programming the web

• Single Page Applications

• What is Angular

• A quick Application

• Lab: Building an Angular App

• If you want to learn more..

1

Page 3: Hack angular wildly

Wildhacks

In the beginning

2

Browser Server

FilesHTML

Web Server

Scripts

HTML

CSS

Scripts(JavaScript)

HTTP Get, Put

Pages

Page 4: Hack angular wildly

Wildhacks

Then There was AJAX

3

BrowserServer

FilesHTML

Web Server

Scripts

HTML

CSSScripts(JavaScript)

HTTP Get, Put

Pages

Server

Database

Web Server

Web Service

XMLHTTP

XML Data

Page 5: Hack angular wildly

Wildhacks

Then Single Page Apps

4

BrowserServer

FilesHTML

Web Server

Scripts

HTML

CSS

Scripts(JavaScript)

HTTP Get, Put

Page

XHRHTTP

Data (JSON)

Server

Database

Web Server

Web Service

Page Fragments

Data

Page 6: Hack angular wildly

Wildhacks

SPA Application Frameworks

5

View

Model

Co

ntr

olle

r

HTTP Get, Put

Page

XHRHTTP

Data (JSON)

“The Cloud”

Page 7: Hack angular wildly

Wildhacks

Angular• Open Source

• Produced by Google

• Angular≠AngularJS

• Libraries+Toolset+Typescript

• The most confusing naming and versioning in recent history

• Angular == Angular 2 <= Angular 4

• Stable since the beginning of 2017

6

Page 8: Hack angular wildly

Wildhacks

Core Concepts

• Extend HTML with App specific Tags and

attributes built with Components

• Build Services the work with components to

manage state and provide data

• Group Components with Modules

• Manage Transitions and State with a Router

7

Page 9: Hack angular wildly

Wildhacks

Let’s quickly build an applicationsee https://github.com/toddwseattle/nuhacksdemo

8

Page 10: Hack angular wildly

Wildhacks

What Happened?

• Used command line tool (CLLI) to generate application

• Used NPM to install dependencies

• Created components that bind HTML, Typescript code, and CSS for new HTML tags

• Used templating to 2-way bind to data

• Use the CLI to build and serve app

9

Page 11: Hack angular wildly

Wildhacks

On to the tutorial

• Clone https://github.com/toddwseattle/wildangular

• See step by step in the github repo

10

Page 12: Hack angular wildly

Wildhacks

Additional Resources• Angular Website

– http://angular.io

• Tour of Heros tutorial– https://angular.io/docs/ts/latest/tutorial/

• Good Video introduction– https://www.youtube.com/watch?v=htPYk6QxacQ&t=2279s

• Big Github Resource List on Reddit (subreddit is very good)– https://www.reddit.com/r/Angular2/comments/5xrwwi/helpful_ang

ular_2_github_repos_curated_through/

11