44
Modern Web Applications using

Modern Web Applications using AngularJS

Embed Size (px)

DESCRIPTION

An introductory session about #AngularJS, Kinda mentions history but focuses more on Angular's features, and what it introduces to Web Development.The session was introduced in Google Dev Fest 2014 in Cairo, Egypt . And then revised and presented in #CATScipe14.

Citation preview

Page 1: Modern Web Applications using AngularJS

Modern Web Applicationsusing

Page 2: Modern Web Applications using AngularJS

Ibrahim Abdel Fattah MohamedWeb Development & Software Engineer

@bingorabbithttp://bingorabbit.com

Page 3: Modern Web Applications using AngularJS
Page 4: Modern Web Applications using AngularJS

Agenda

Page 5: Modern Web Applications using AngularJS

Whatis

Angular JS?

Page 6: Modern Web Applications using AngularJS

.js

Page 7: Modern Web Applications using AngularJS

~17,000Lines of code

Page 8: Modern Web Applications using AngularJS

~1,000Lines of code

Page 9: Modern Web Applications using AngularJS

یا راجل؟

Page 10: Modern Web Applications using AngularJS
Page 11: Modern Web Applications using AngularJS

Whatis

Angular JS?

Page 12: Modern Web Applications using AngularJS

.js

Page 13: Modern Web Applications using AngularJS

Library

Page 14: Modern Web Applications using AngularJS

Framework

Page 15: Modern Web Applications using AngularJS

Whatis

Angular JS?

Page 16: Modern Web Applications using AngularJS

.js

Page 17: Modern Web Applications using AngularJS

Single Page Applications

Page 18: Modern Web Applications using AngularJS

You already know about it..

Page 19: Modern Web Applications using AngularJS

“Angular is what HTML would

have been..”-- Angular Documentation

Page 20: Modern Web Applications using AngularJS

Why?

Page 21: Modern Web Applications using AngularJS

Simplicityis the ultimate sophistication...

-- Leonardo Da Vinci

Page 22: Modern Web Applications using AngularJS

Before1| <!DOCTYPE html>2| <html lang="en">3| <head>4| <title>Index</title>5| </head>6| <body>7| Name: <input type="text" id="myInputBox">8| Hello, <span id="nameSpan"></span>9| <script>10| var inputElement = document.getElementById("myInputBox");11| inputElement.addEventListener('keyup', function(){12| var text = inputElement.value;13| nameElement.innerHTML = text;14| });15| </script>17| </body>18| </html>

Page 23: Modern Web Applications using AngularJS

1| <!DOCTYPE html>2| <html lang="en">3| <head>4| <title>Index</title>5| <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.2.min.js"></script>6| </head>7| <body>8| Name: <input type="text" id="myInputBox">9| Hello, <span id="nameSpan"></span>10| <script>11| $("#myInputBox").keyup(function(){12| $("#nameSpan").text($("#myInputBox").val());13| });14| </script>15| </body>16| </html>

Beforeeven a better version..

Page 24: Modern Web Applications using AngularJS

1| <!DOCTYPE html>2| <html lang="en" ng-app>3| <head>4| <title>Index</title>5| <script src="angular.min.js"></script>6| </head>7| <body>8| Name: <input type="text" ng-model=”nameModel” />9| Hello, {{ nameModel }}10| </body>11| </html>

After

Page 25: Modern Web Applications using AngularJS

W

Page 26: Modern Web Applications using AngularJS
Page 27: Modern Web Applications using AngularJS

Modularity

Page 28: Modern Web Applications using AngularJS

Reusability

Page 29: Modern Web Applications using AngularJS

Community

Page 30: Modern Web Applications using AngularJS

AngularJS HOT FeaturesSome

Page 31: Modern Web Applications using AngularJS

Data Binding

Page 32: Modern Web Applications using AngularJS

Angular Directives

Page 33: Modern Web Applications using AngularJS

Angular Filters

Page 34: Modern Web Applications using AngularJS

Routing

Page 35: Modern Web Applications using AngularJS
Page 36: Modern Web Applications using AngularJS

STOP the ****** nonsense and show

me some CODE!github repo used in session:

-http://github.com/bingorabbit/shebbak-http://github.com/bingorabbit/bondera

Page 37: Modern Web Applications using AngularJS

Keywords- Declarative vs. Imperative

Programming- Web Components- Promise Objects- History of AngularJS- angularjs.org- ng-book- W3Schools Angular: http:

//goo.gl/vQjSKp- http://todomvc.com

Page 38: Modern Web Applications using AngularJS

Applications using AngularJS

Built with AngularJS: http://goo.gl/r2c2at

Page 39: Modern Web Applications using AngularJS
Page 40: Modern Web Applications using AngularJS
Page 41: Modern Web Applications using AngularJS
Page 42: Modern Web Applications using AngularJS
Page 43: Modern Web Applications using AngularJS

Q?s

Page 44: Modern Web Applications using AngularJS

Thanks!:)

Ibrahim Abdel Fattah MohamedTweet to me: @bingorabbit