Suche senden
Hochladen
AngulrJS Overview
•
15 gefällt mir
•
10,757 views
Eyal Vardi
Folgen
AngulrJS Overview
Weniger lesen
Mehr lesen
Technologie
Business
Melden
Teilen
Melden
Teilen
1 von 17
Empfohlen
AngularJS Compile Process
AngularJS Compile Process
Eyal Vardi
AngularJS Directives
AngularJS Directives
Eyal Vardi
AngularJS Services
AngularJS Services
Eyal Vardi
AngularJS Architecture
AngularJS Architecture
Eyal Vardi
AngularJS Routing
AngularJS Routing
Eyal Vardi
GDayX - Advanced Angular.JS
GDayX - Advanced Angular.JS
Nicolas Embleton
AngularJS Internal
AngularJS Internal
Eyal Vardi
Get AngularJS Started!
Get AngularJS Started!
Dzmitry Ivashutsin
Empfohlen
AngularJS Compile Process
AngularJS Compile Process
Eyal Vardi
AngularJS Directives
AngularJS Directives
Eyal Vardi
AngularJS Services
AngularJS Services
Eyal Vardi
AngularJS Architecture
AngularJS Architecture
Eyal Vardi
AngularJS Routing
AngularJS Routing
Eyal Vardi
GDayX - Advanced Angular.JS
GDayX - Advanced Angular.JS
Nicolas Embleton
AngularJS Internal
AngularJS Internal
Eyal Vardi
Get AngularJS Started!
Get AngularJS Started!
Dzmitry Ivashutsin
Intro to Angular.JS Directives
Intro to Angular.JS Directives
Christian Lilley
AngularJS - $http & $resource Services
AngularJS - $http & $resource Services
Eyal Vardi
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
FalafelSoftware
AngularJS Animations
AngularJS Animations
Eyal Vardi
AngularJS Basics with Example
AngularJS Basics with Example
Sergey Bolshchikov
Introducing jQuery
Introducing jQuery
Wildan Maulana
Component lifecycle hooks in Angular 2.0
Component lifecycle hooks in Angular 2.0
Eyal Vardi
jQuery basics
jQuery basics
Stijn Van Minnebruggen
AngularJS: what is underneath the hood
AngularJS: what is underneath the hood
DA-14
Building an End-to-End AngularJS Application
Building an End-to-End AngularJS Application
Dan Wahlin
Angular js routing options
Angular js routing options
Nir Kaufman
Angular Directives from Scratch
Angular Directives from Scratch
Christian Lilley
AngularJS Framework
AngularJS Framework
Barcamp Saigon
AngularJS for designers and developers
AngularJS for designers and developers
Kai Koenig
Javascript - Beyond-jQuery
Javascript - Beyond-jQuery
Tanner Moushey ❖ Mission Lab - WordPress Agency
Introduction to angular js
Introduction to angular js
Marco Vito Moscaritolo
Hack tutorial
Hack tutorial
Wakana Yoshizawa
Angular js - 4developers 12 kwietnia 2013
Angular js - 4developers 12 kwietnia 2013
Marcin Wosinek
JavaScript and jQuery Basics
JavaScript and jQuery Basics
Kaloyan Kosev
jQuery Best Practice
jQuery Best Practice
chandrashekher786
Forms in AngularJS
Forms in AngularJS
Eyal Vardi
AngularJS Filters
AngularJS Filters
Eyal Vardi
Weitere ähnliche Inhalte
Was ist angesagt?
Intro to Angular.JS Directives
Intro to Angular.JS Directives
Christian Lilley
AngularJS - $http & $resource Services
AngularJS - $http & $resource Services
Eyal Vardi
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
FalafelSoftware
AngularJS Animations
AngularJS Animations
Eyal Vardi
AngularJS Basics with Example
AngularJS Basics with Example
Sergey Bolshchikov
Introducing jQuery
Introducing jQuery
Wildan Maulana
Component lifecycle hooks in Angular 2.0
Component lifecycle hooks in Angular 2.0
Eyal Vardi
jQuery basics
jQuery basics
Stijn Van Minnebruggen
AngularJS: what is underneath the hood
AngularJS: what is underneath the hood
DA-14
Building an End-to-End AngularJS Application
Building an End-to-End AngularJS Application
Dan Wahlin
Angular js routing options
Angular js routing options
Nir Kaufman
Angular Directives from Scratch
Angular Directives from Scratch
Christian Lilley
AngularJS Framework
AngularJS Framework
Barcamp Saigon
AngularJS for designers and developers
AngularJS for designers and developers
Kai Koenig
Javascript - Beyond-jQuery
Javascript - Beyond-jQuery
Tanner Moushey ❖ Mission Lab - WordPress Agency
Introduction to angular js
Introduction to angular js
Marco Vito Moscaritolo
Hack tutorial
Hack tutorial
Wakana Yoshizawa
Angular js - 4developers 12 kwietnia 2013
Angular js - 4developers 12 kwietnia 2013
Marcin Wosinek
JavaScript and jQuery Basics
JavaScript and jQuery Basics
Kaloyan Kosev
jQuery Best Practice
jQuery Best Practice
chandrashekher786
Was ist angesagt?
(20)
Intro to Angular.JS Directives
Intro to Angular.JS Directives
AngularJS - $http & $resource Services
AngularJS - $http & $resource Services
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
AngularJS Animations
AngularJS Animations
AngularJS Basics with Example
AngularJS Basics with Example
Introducing jQuery
Introducing jQuery
Component lifecycle hooks in Angular 2.0
Component lifecycle hooks in Angular 2.0
jQuery basics
jQuery basics
AngularJS: what is underneath the hood
AngularJS: what is underneath the hood
Building an End-to-End AngularJS Application
Building an End-to-End AngularJS Application
Angular js routing options
Angular js routing options
Angular Directives from Scratch
Angular Directives from Scratch
AngularJS Framework
AngularJS Framework
AngularJS for designers and developers
AngularJS for designers and developers
Javascript - Beyond-jQuery
Javascript - Beyond-jQuery
Introduction to angular js
Introduction to angular js
Hack tutorial
Hack tutorial
Angular js - 4developers 12 kwietnia 2013
Angular js - 4developers 12 kwietnia 2013
JavaScript and jQuery Basics
JavaScript and jQuery Basics
jQuery Best Practice
jQuery Best Practice
Andere mochten auch
Forms in AngularJS
Forms in AngularJS
Eyal Vardi
AngularJS Filters
AngularJS Filters
Eyal Vardi
AngularJS Testing
AngularJS Testing
Eyal Vardi
Angular 2.0 forms
Angular 2.0 forms
Eyal Vardi
Angular 2.0 Routing and Navigation
Angular 2.0 Routing and Navigation
Eyal Vardi
Angular 2 Architecture (Bucharest 26/10/2016)
Angular 2 Architecture (Bucharest 26/10/2016)
Eyal Vardi
Introduction to Angularjs
Introduction to Angularjs
Manish Shekhawat
Vancouver AngularJS using $resource in your application
Vancouver AngularJS using $resource in your application
Sachin Agrawal
AngularJS $Provide Service
AngularJS $Provide Service
Eyal Vardi
Async & Parallel in JavaScript
Async & Parallel in JavaScript
Eyal Vardi
OOP in JavaScript
OOP in JavaScript
Eyal Vardi
Async & Parallel in JavaScript
Async & Parallel in JavaScript
Eyal Vardi
Angular 2.0 Pipes
Angular 2.0 Pipes
Eyal Vardi
Http Communication in Angular 2.0
Http Communication in Angular 2.0
Eyal Vardi
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Eyal Vardi
Angular 2.0 Dependency injection
Angular 2.0 Dependency injection
Eyal Vardi
Rachel's grandmother's recipes
Rachel's grandmother's recipes
Eyal Vardi
AngularJS 101 - Everything you need to know to get started
AngularJS 101 - Everything you need to know to get started
Stéphane Bégaudeau
Angularjs - lazy loading techniques
Angularjs - lazy loading techniques
Nir Kaufman
Andere mochten auch
(19)
Forms in AngularJS
Forms in AngularJS
AngularJS Filters
AngularJS Filters
AngularJS Testing
AngularJS Testing
Angular 2.0 forms
Angular 2.0 forms
Angular 2.0 Routing and Navigation
Angular 2.0 Routing and Navigation
Angular 2 Architecture (Bucharest 26/10/2016)
Angular 2 Architecture (Bucharest 26/10/2016)
Introduction to Angularjs
Introduction to Angularjs
Vancouver AngularJS using $resource in your application
Vancouver AngularJS using $resource in your application
AngularJS $Provide Service
AngularJS $Provide Service
Async & Parallel in JavaScript
Async & Parallel in JavaScript
OOP in JavaScript
OOP in JavaScript
Async & Parallel in JavaScript
Async & Parallel in JavaScript
Angular 2.0 Pipes
Angular 2.0 Pipes
Http Communication in Angular 2.0
Http Communication in Angular 2.0
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Angular 2.0 Dependency injection
Angular 2.0 Dependency injection
Rachel's grandmother's recipes
Rachel's grandmother's recipes
AngularJS 101 - Everything you need to know to get started
AngularJS 101 - Everything you need to know to get started
Angularjs - lazy loading techniques
Angularjs - lazy loading techniques
Ähnlich wie AngulrJS Overview
Introduction to AngularJS
Introduction to AngularJS
Marco Vito Moscaritolo
Angular js
Angular js
prasaddammalapati
Introduction to angular js july 6th 2014
Introduction to angular js july 6th 2014
Simona Clapan
Angular js
Angular js
ParmarAnisha
Workshop 12: AngularJS Parte I
Workshop 12: AngularJS Parte I
Visual Engineering
Introduction to Html5
Introduction to Html5
www.netgains.org
20190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React2019
Makoto Mori
Dive into AngularJS and directives
Dive into AngularJS and directives
Tricode (part of Dept)
Index of jquery template 2 Minuteman Summer Web Dev.
Index of jquery template 2 Minuteman Summer Web Dev.
Daniel Downs
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
crokitta
Enjoy the vue.js
Enjoy the vue.js
TechExeter
Introduction to AngularJS
Introduction to AngularJS
Jussi Pohjolainen
Angular js quickstart
Angular js quickstart
LinkMe Srl
Knockout mvvm-m5-slides
Knockout mvvm-m5-slides
MasterCode.vn
jQuery Mobile - Desenvolvimento para dispositivos móveis
jQuery Mobile - Desenvolvimento para dispositivos móveis
Pablo Garrido
QCon 2015 - Thinking in components: A new paradigm for Web UI
QCon 2015 - Thinking in components: A new paradigm for Web UI
Oliver Häger
AngularJS Mobile Warsaw 20-10-2014
AngularJS Mobile Warsaw 20-10-2014
Dariusz Kalbarczyk
Introduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
Eu odeio OpenSocial
Eu odeio OpenSocial
Carlos Brando
Basic html
Basic html
Nicha Jutasirivongse
Ähnlich wie AngulrJS Overview
(20)
Introduction to AngularJS
Introduction to AngularJS
Angular js
Angular js
Introduction to angular js july 6th 2014
Introduction to angular js july 6th 2014
Angular js
Angular js
Workshop 12: AngularJS Parte I
Workshop 12: AngularJS Parte I
Introduction to Html5
Introduction to Html5
20190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React2019
Dive into AngularJS and directives
Dive into AngularJS and directives
Index of jquery template 2 Minuteman Summer Web Dev.
Index of jquery template 2 Minuteman Summer Web Dev.
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Enjoy the vue.js
Enjoy the vue.js
Introduction to AngularJS
Introduction to AngularJS
Angular js quickstart
Angular js quickstart
Knockout mvvm-m5-slides
Knockout mvvm-m5-slides
jQuery Mobile - Desenvolvimento para dispositivos móveis
jQuery Mobile - Desenvolvimento para dispositivos móveis
QCon 2015 - Thinking in components: A new paradigm for Web UI
QCon 2015 - Thinking in components: A new paradigm for Web UI
AngularJS Mobile Warsaw 20-10-2014
AngularJS Mobile Warsaw 20-10-2014
Introduction to Bootstrap
Introduction to Bootstrap
Eu odeio OpenSocial
Eu odeio OpenSocial
Basic html
Basic html
Mehr von Eyal Vardi
Why magic
Why magic
Eyal Vardi
Smart Contract
Smart Contract
Eyal Vardi
Performance Optimization In Angular 2
Performance Optimization In Angular 2
Eyal Vardi
Angular 2 NgModule
Angular 2 NgModule
Eyal Vardi
Upgrading from Angular 1.x to Angular 2.x
Upgrading from Angular 1.x to Angular 2.x
Eyal Vardi
Angular 2 - Ahead of-time Compilation
Angular 2 - Ahead of-time Compilation
Eyal Vardi
Routing And Navigation
Routing And Navigation
Eyal Vardi
Angular 2 Architecture
Angular 2 Architecture
Eyal Vardi
Angular 1.x vs. Angular 2.x
Angular 1.x vs. Angular 2.x
Eyal Vardi
Angular 2.0 Views
Angular 2.0 Views
Eyal Vardi
Modules and injector
Modules and injector
Eyal Vardi
Modules in ECMAScript 6.0
Modules in ECMAScript 6.0
Eyal Vardi
Proxies in ECMAScript 6.0
Proxies in ECMAScript 6.0
Eyal Vardi
Iterators & Generators in ECMAScript 6.0
Iterators & Generators in ECMAScript 6.0
Eyal Vardi
Symbols in ECMAScript 6.0
Symbols in ECMAScript 6.0
Eyal Vardi
Objects & Classes in ECMAScript 6.0
Objects & Classes in ECMAScript 6.0
Eyal Vardi
Scope & Functions in ECMAScript 6.0
Scope & Functions in ECMAScript 6.0
Eyal Vardi
Node.js Spplication Scaling
Node.js Spplication Scaling
Eyal Vardi
Node.js Socket.IO
Node.js Socket.IO
Eyal Vardi
Mehr von Eyal Vardi
(19)
Why magic
Why magic
Smart Contract
Smart Contract
Performance Optimization In Angular 2
Performance Optimization In Angular 2
Angular 2 NgModule
Angular 2 NgModule
Upgrading from Angular 1.x to Angular 2.x
Upgrading from Angular 1.x to Angular 2.x
Angular 2 - Ahead of-time Compilation
Angular 2 - Ahead of-time Compilation
Routing And Navigation
Routing And Navigation
Angular 2 Architecture
Angular 2 Architecture
Angular 1.x vs. Angular 2.x
Angular 1.x vs. Angular 2.x
Angular 2.0 Views
Angular 2.0 Views
Modules and injector
Modules and injector
Modules in ECMAScript 6.0
Modules in ECMAScript 6.0
Proxies in ECMAScript 6.0
Proxies in ECMAScript 6.0
Iterators & Generators in ECMAScript 6.0
Iterators & Generators in ECMAScript 6.0
Symbols in ECMAScript 6.0
Symbols in ECMAScript 6.0
Objects & Classes in ECMAScript 6.0
Objects & Classes in ECMAScript 6.0
Scope & Functions in ECMAScript 6.0
Scope & Functions in ECMAScript 6.0
Node.js Spplication Scaling
Node.js Spplication Scaling
Node.js Socket.IO
Node.js Socket.IO
Kürzlich hochgeladen
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
HostedbyConfluent
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
XfilesPro
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
AndikSusilo4
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
2toLead Limited
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
Neo4j
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
Softradix Technologies
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
OnBoard
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
Kürzlich hochgeladen
(20)
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
AngulrJS Overview
1.
HTML enhanced for
web apps!
2.
3.
<!DOCTYPE html> <html data-ng-app=""> <head> <title>AngulrJJS
Hello World</title> </head> <body> <!-- Expressions --> 1 + 1 * 3 = {{1+1*3}} <br/> <!-- Directives & Data Binding --> Name: <input type="text" data-ng-model="name"/> {{name}} <script src="/Scripts/angular.min.js"></script> </body> </html>
4.
<!DOCTYPE html> <html data-ng-app=""> <head> <title>ng-repeat
directive</title> </head> <body> <div data-ng-init="names=[{id:1,name:'eyal'},{id:2,name:'vardi'}]"> Looping with the ng-repeat Directive:<br/> <ul> <li data-ng-repeat="n in names">{{n.id}} - {{n.name}}</li> </ul> </div> <script src="/Scripts/angular.min.js"></script> </body> </html>
5.
<!DOCTYPE html> <html data-ng-app=""> <head> <title>ng-repeat
directive</title> </head> <body> <div data-ng-init="names=[{id:1,name:'eyal'},{id:2,name:'vardi'}]"> Looping with the ng-repeat Directive:<br/> <ul> <li data-ng-repeat="n in names | orderBy:'name'"> {{n.id}} - {{n.name}} </li> </ul> </div> <script src="/Scripts/angular.min.js"></script> </body> </html>
6.
7.
8.
Model ($scope) ControllerView
9.
<div data-ng-controller="MyController"> Looping with
the ng-repeat Directive:<br/> <ul> <li data-ng-repeat="n in names | orderBy:'name'"> {{n.id}} - {{n.name}} </li> </ul> </div> <script src="/Scripts/angular.min.js"></script> <script> function MyController($scope) { $scope.names = [ { id: 1, name: 'eyal' }, { id: 2, name: 'vardi' }, { id: 3, name: 'apple' } ]; } </script>
10.
11.
12.
13.
14.
<html data-ng-app="myApp"> ... <div data-ng-controller="MyController"> Looping
with the ng-repeat Directive:<br/> <ul> <li data-ng-repeat="n in names | orderBy:'name'"> {{n.id}} - {{n.name}} </li> </ul> </div> <script src="/Scripts/angular.min.js"></script> <script> var myApp = angular.module('myApp', []); myApp.controller('MyController', function($scope) { $scope.names = [ { id: 1, name: 'eyal' }, { id: 2, name: 'vardi' }, { id: 3, name: 'apple' } ]; }); </script>
15.
<div data-ng-controller="MyCont"> <a data-ng-href="#/">View
1</a> | <a data-ng-href="#/view2">View 2</a> <div data-ng-view="#/View2"></div> </div> <script src="/Scripts/angular.min.js"></script> <script> var myApp = angular.module('myApp', []); myApp.config(function($routeProvider) { $routeProvider .when('/' , { controller: 'MyCont', templateUrl: 'V1.htm' }) .when('/view2', { controller: 'MyCont', templateUrl: 'V2.htm' }) .otherwise({ redirectTo: '/' }); }); myApp.controller('MyCont', function($scope) { $scope.names = [{ id: 1, name: 'eyal' },{ id: 2, name: 'vardi' }, { id: 3, name: 'apple' }]; }); </script>
16.
//factory style, more
involved but more sophisticated myApp.factory('myFactory', function () { return { sayHello: function () { return "Hello, World!"; } }; }); myApp.controller('MyCntr', function ($scope, myFactory) { $scope.myFactory = myFactory.sayHello(); });