Top Banner
AngularJS Timea Turdean www.timeaturdean.com
19

Intro to AngularJS

Dec 01, 2014

Download

Internet

Timea Turdean

AngularJS tutorial for beginners. The tutorial code is on https://github.com/theRealImy/testAngular
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: Intro to AngularJS

AngularJS

Timea Turdean

www.timeaturdean.com

Page 2: Intro to AngularJS

Agenda Introduction AngularJS – identify yourself AngularJS – where can I find you? AngularJS – what do I need to get started? Examples & building blocks Project work

Page 3: Intro to AngularJS

Inroduction

Page 4: Intro to AngularJS

AngularJS - identify yourself A JavaScript open-source-framework for

frontend Created & maintained by people @Google

since 2009 Based on the single-page application(SPA) &

based on the MVC pattern

Fun fact – the versions have funny names 2014 1 .3.x unicorn-hydrafication  2014 1.2.26 captivating-disinterest 2010 0.9.0 dragon-breath 

Page 5: Intro to AngularJS

AngularJS – where can I find you? On the official website: angularjs.org Online videos: Dan Wahlin AngularJS

in 20ish min, AngularJS in 60ish min Confference:  ngeurope.org Tutorials: w3schools.com, CodeSchool Before starting with AngularJS, you should have

a basic understanding of: HTML CSS JavaScript

This tutorial is based on the code @https://github.com/theRealImy/testAngular

Page 6: Intro to AngularJS

AngularJS – what do I need to get started?

angularDemo folder index.html

index.html: <script src=“lib/angular.js”</script> from

https://angularjs.org/ OR

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>

Example 1 in tutorial

Page 7: Intro to AngularJS

Let’s get started!

Page 8: Intro to AngularJS

Before & After AngularJS

Page 12: Intro to AngularJS

AngularJS Routes Routes are used for navigation between views

Download or link angular-route.js https://ajax.googleapis.com/ajax/libs/angularjs/

1.2.26/angular-route.js Install a server (node/wamp/xampp) Dan Wahling video (42:04 - 44:45)

Routes Example 13 in tutorial

Page 13: Intro to AngularJS

AngularJS Factory

Factory is a service in AngularJS module.factory( 'factoryName', function );

Factory in Angular Example 14 in tutorial

Page 14: Intro to AngularJS

AngularJS server side

$http is an internal service of AngularJS

$https example Example 15 in tutorial

Page 15: Intro to AngularJS

Project work

Page 16: Intro to AngularJS

Project work

Page 17: Intro to AngularJS

Project work

Page 18: Intro to AngularJS

Project Work

Tutorial code: https://github.com/theRealImy/testAngular

Project work: https://github.com/edemguru/angularWorkshop

Page 19: Intro to AngularJS

AngularJS

Timea Turdean

www.timeaturdean.com

THANK YOU for PARTICIPATING in