SlideShare a Scribd company logo
Submit Search
Upload
AngularJS first steps
Report
Share
S
seges
Follow
•
5 likes
•
2,751 views
1
of
16
AngularJS first steps
•
5 likes
•
2,751 views
Report
Share
Download Now
Download to read offline
From Java Dinosaur to AngularJS JavaScripter - introduction talk to powerful AngularJS framework
Read more
S
seges
Follow
Recommended
ITexperience - AngularJS by
ITexperience - AngularJS
Michal Maxian
745 views
•
20 slides
Introducing jQuery by
Introducing jQuery
Wildan Maulana
1.1K views
•
17 slides
AngulrJS Overview by
AngulrJS Overview
Eyal Vardi
10.8K views
•
17 slides
Handlebars by
Handlebars
Sivasankaran Murugaiyan
3.4K views
•
41 slides
Introduction to javascript templating using handlebars.js by
Introduction to javascript templating using handlebars.js
Mindfire Solutions
2.8K views
•
17 slides
React.js触ってみた 吉澤和香奈 by
React.js触ってみた 吉澤和香奈
Wakana Yoshizawa
2.7K views
•
15 slides
More Related Content
What's hot
Template syntax in Angular 2.0 by
Template syntax in Angular 2.0
Eyal Vardi
3.6K views
•
26 slides
Angular 2 Architecture (Bucharest 26/10/2016) by
Angular 2 Architecture (Bucharest 26/10/2016)
Eyal Vardi
4.1K views
•
43 slides
Using JavaScript in Drupal by
Using JavaScript in Drupal
katbailey
2.6K views
•
15 slides
Contagion的Ruby/Rails投影片 by
Contagion的Ruby/Rails投影片
cfc
753 views
•
49 slides
JQuery In Drupal by
JQuery In Drupal
katbailey
3.8K views
•
22 slides
A Short Introduction To jQuery by
A Short Introduction To jQuery
Sudar Muthu
2.5K views
•
21 slides
What's hot
(20)
Template syntax in Angular 2.0 by Eyal Vardi
Template syntax in Angular 2.0
Eyal Vardi
•
3.6K views
Angular 2 Architecture (Bucharest 26/10/2016) by Eyal Vardi
Angular 2 Architecture (Bucharest 26/10/2016)
Eyal Vardi
•
4.1K views
Using JavaScript in Drupal by katbailey
Using JavaScript in Drupal
katbailey
•
2.6K views
Contagion的Ruby/Rails投影片 by cfc
Contagion的Ruby/Rails投影片
cfc
•
753 views
JQuery In Drupal by katbailey
JQuery In Drupal
katbailey
•
3.8K views
A Short Introduction To jQuery by Sudar Muthu
A Short Introduction To jQuery
Sudar Muthu
•
2.5K views
Client-side MVC with Backbone.js by iloveigloo
Client-side MVC with Backbone.js
iloveigloo
•
28.2K views
Component lifecycle hooks in Angular 2.0 by Eyal Vardi
Component lifecycle hooks in Angular 2.0
Eyal Vardi
•
3.4K views
jQuery Beginner by kumar gaurav
jQuery Beginner
kumar gaurav
•
419 views
J querypractice by Inbal Geffen
J querypractice
Inbal Geffen
•
311 views
JavaScript and jQuery Basics by Kaloyan Kosev
JavaScript and jQuery Basics
Kaloyan Kosev
•
3.5K views
Angular js - 4developers 12 kwietnia 2013 by Marcin Wosinek
Angular js - 4developers 12 kwietnia 2013
Marcin Wosinek
•
2.1K views
Short intro to JQuery and Modernizr by Jussi Pohjolainen
Short intro to JQuery and Modernizr
Jussi Pohjolainen
•
5.4K views
jQuery Presentation by Rod Johnson
jQuery Presentation
Rod Johnson
•
4.7K views
AngularJS by LearningTech
AngularJS
LearningTech
•
691 views
JQuery by Jussi Pohjolainen
JQuery
Jussi Pohjolainen
•
1.2K views
JavaScript the Smart Way - Getting Started with jQuery by katbailey
JavaScript the Smart Way - Getting Started with jQuery
katbailey
•
2.2K views
Broadleaf Presents Thymeleaf by Broadleaf Commerce
Broadleaf Presents Thymeleaf
Broadleaf Commerce
•
5.1K views
JavaScript for Flex Devs by Aaronius
JavaScript for Flex Devs
Aaronius
•
9.2K views
Jquery for post a form by Rakesh Kumar
Jquery for post a form
Rakesh Kumar
•
621 views
Similar to AngularJS first steps
Opencast Admin UI - Introduction to developing using AngularJS by
Opencast Admin UI - Introduction to developing using AngularJS
buttyx
556 views
•
27 slides
Angular Performance: Then, Now and the Future. Todd Motto by
Angular Performance: Then, Now and the Future. Todd Motto
Future Insights
17.5K views
•
71 slides
Get AngularJS Started! by
Get AngularJS Started!
Dzmitry Ivashutsin
1K views
•
37 slides
Basics of AngularJS by
Basics of AngularJS
Filip Janevski
460 views
•
34 slides
Private slideshow by
Private slideshow
sblackman
878 views
•
16 slides
Angular.js опыт использования, проблемы и решения by
Angular.js опыт использования, проблемы и решения
Olga Lavrentieva
2.1K views
•
15 slides
Similar to AngularJS first steps
(20)
Opencast Admin UI - Introduction to developing using AngularJS by buttyx
Opencast Admin UI - Introduction to developing using AngularJS
buttyx
•
556 views
Angular Performance: Then, Now and the Future. Todd Motto by Future Insights
Angular Performance: Then, Now and the Future. Todd Motto
Future Insights
•
17.5K views
Get AngularJS Started! by Dzmitry Ivashutsin
Get AngularJS Started!
Dzmitry Ivashutsin
•
1K views
Basics of AngularJS by Filip Janevski
Basics of AngularJS
Filip Janevski
•
460 views
Private slideshow by sblackman
Private slideshow
sblackman
•
878 views
Angular.js опыт использования, проблемы и решения by Olga Lavrentieva
Angular.js опыт использования, проблемы и решения
Olga Lavrentieva
•
2.1K views
How to Mess Up Your Angular UI Components by cagataycivici
How to Mess Up Your Angular UI Components
cagataycivici
•
842 views
Choosing a Javascript Framework by All Things Open
Choosing a Javascript Framework
All Things Open
•
1K views
Angular by LearningTech
Angular
LearningTech
•
600 views
Angular by LearningTech
Angular
LearningTech
•
400 views
[Coscup 2012] JavascriptMVC by Alive Kuo
[Coscup 2012] JavascriptMVC
Alive Kuo
•
1.3K views
Introduction to angular js by Marco Vito Moscaritolo
Introduction to angular js
Marco Vito Moscaritolo
•
1.1K views
Django at the Disco by Richard Leland
Django at the Disco
Richard Leland
•
1.7K views
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa... by FalafelSoftware
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
FalafelSoftware
•
3.1K views
Dive into AngularJS and directives by Tricode (part of Dept)
Dive into AngularJS and directives
Tricode (part of Dept)
•
1.3K views
Nicolas Embleton, Advanced Angular JS by JavaScript Meetup HCMC
Nicolas Embleton, Advanced Angular JS
JavaScript Meetup HCMC
•
2.6K views
AngularJS Compile Process by Eyal Vardi
AngularJS Compile Process
Eyal Vardi
•
11.2K views
Building Grails Plugins - Tips And Tricks by Mike Hugo
Building Grails Plugins - Tips And Tricks
Mike Hugo
•
7.3K views
gDayX 2013 - Advanced AngularJS - Nicolas Embleton by George Nguyen
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
George Nguyen
•
1.4K views
GDayX - Advanced Angular.JS by Nicolas Embleton
GDayX - Advanced Angular.JS
Nicolas Embleton
•
11.1K views
More from seges
Spring Boot and Microservices by
Spring Boot and Microservices
seges
2.3K views
•
31 slides
Automated Tomcat Management by
Automated Tomcat Management
seges
1.4K views
•
34 slides
Javist Being Cheftain by
Javist Being Cheftain
seges
852 views
•
23 slides
Multi-tenancy in Java by
Multi-tenancy in Java
seges
11.3K views
•
26 slides
OSGi experiments by
OSGi experiments
seges
1.5K views
•
14 slides
Internetová prítomnosť a content management by
Internetová prítomnosť a content management
seges
270 views
•
13 slides
More from seges
(8)
Spring Boot and Microservices by seges
Spring Boot and Microservices
seges
•
2.3K views
Automated Tomcat Management by seges
Automated Tomcat Management
seges
•
1.4K views
Javist Being Cheftain by seges
Javist Being Cheftain
seges
•
852 views
Multi-tenancy in Java by seges
Multi-tenancy in Java
seges
•
11.3K views
OSGi experiments by seges
OSGi experiments
seges
•
1.5K views
Internetová prítomnosť a content management by seges
Internetová prítomnosť a content management
seges
•
270 views
GWT Workshop by seges
GWT Workshop
seges
•
441 views
Ako sme zistili ze asi robime Scrum by seges
Ako sme zistili ze asi robime Scrum
seges
•
488 views
AngularJS first steps
1.
od Dinosaura k
JavaScriptu Ladislav Gažo gazo@seges.sk @ladislavGazo
2.
JavaScript.... whaaat? 2 |
Internal use only
3.
I need CLEVER
JavaScript framework bottle for the trip 3 | Internal use only
4.
A co to
ten angulár umí? • Data binding • Controller • Plain JavaScript • Validation • Server communication • Directives • Injection • Testing 4 | Internal use only
5.
<h2>BizMon</h2>
<div id="bizmonApp" ng-controller="BizmonCtrl"> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="brand" href="#">Bizmon</a> <ul class="nav"> <li ng-repeat="project in projects"> <a ng-href="#/projects/ {{project.id}}">{{project.name}}</a> </li> </ul> </div> </div> </div> <div class="container-fluid"> <div class="row-fluid" ng-view></div> <footer> <p>© Seges 2012</p> </footer> </div> </div> 5 | Internal use only
6.
Curly brackets?
In HTML? 6 | Internal use only
7.
function BizmonCtrl($scope, projectService)
{ $scope.projects = projectService.query(); } BizmonCtrl.$inject = ["$scope", "projectService"]; 7 | Internal use only
8.
angular.module('bizmonApp.services', [ 'ngResource'
]).factory( 'projectService', function($resource) { var service = $resource('rest/projects/:projectId', {}, {}); return service; }); mvn -o archetype:generate -DarchetypeGroupId=sk.seges.acris.archetype -DarchetypeArtifactId=acris-archetype-rest-server ( AcrIS - http://acris.googlecode.com ) 8 | Internal use only
9.
ng-click wohohooo 9 |
Internal use only
10.
<tr ng-repeat="issueState in
prjScope.issueStates"> <td ng-class="'operation-' + issueState.operation"> <a ng-click="editIssue(issueState)">{{issueState.uuid}}</a> </td> <td>{{issueState.reason}}</td> <td> <span class="btn-group" ng-show="projectScopeViews[prjScope.id].edit"> <a class="btn btn-primary" ng-click="toggleOperation(issueState)"> <span ng-bind="issueState.operation"></span> </a> <a class="btn btn-danger" ng-click="deleteIssue(prjScope, issueState)">Delete</a> </span> </td> </tr> 10 | Internal use only
11.
<input type="textarea" ng-model="activeIssueState.reason"
placeholder="optional reason why you are creating the issue" size="4"/> 11 | Internal use only
12.
Neatness 12 | Internal
use only
13.
var inputNameDirective =
['$interpolate', function($interpolate) { return { restrict: 'A', scope: { inputName: 'attribute', ngModel: 'accessor' }, require: ['ngModel','^?form'], link: function (scope, element, attrs, ctrl) { var ex = $interpolate(scope.inputName); scope.nameTransformed = ex(scope.$parent); var modelCtrl = ctrl[0]; modelCtrl.$name = scope.nameTransformed; var formCtrl = ctrl[1] || nullFormCtrl; formCtrl.$addControl(modelCtrl); } }; }]; angular.module('bizmonApp.directives',[]).directive('inputName', inputNameDirective); 13 | Internal use only
14.
14 | Internal
use only
15.
WORK with US
Thank you for your patience gazo@seges.sk @ladislavGazo 15 | Internal use only
16.
Links
• BizMon project - https://github.com/lgazo/bizmon • AcrIS – http://acris.googlecode.com • AngularJS – http://angularjs.org 16 | Internal use only