Submit Search
Upload
AngularJS - Introductions to Directives
•
0 likes
•
924 views
Egor Miasnikov
Follow
Introductions to Directives - common things
Read less
Read more
Software
Report
Share
Report
Share
1 of 13
Download now
Download to read offline
Recommended
1から始めるAMP対応
1から始めるAMP対応
Kasumi Morita
a-blog cms でAMPに対応する
a-blog cms でAMPに対応する
Kasumi Morita
computer language - Html frames
computer language - Html frames
Dr. I. Uma Maheswari Maheswari
Working with Javascript in Rails
Working with Javascript in Rails
Seungkyun Nam
Error: WebForms UnobtrusiveValidationMode Requires a ScriptResourceMapping Fo...
Error: WebForms UnobtrusiveValidationMode Requires a ScriptResourceMapping Fo...
manojbkalla
Inline
Inline
ekeoguob
Black-Scholes Calculator on Web
Black-Scholes Calculator on Web
Eugene Yang
7 reasons why developers should love Joomla!
7 reasons why developers should love Joomla!
Bartłomiej Krztuk
Recommended
1から始めるAMP対応
1から始めるAMP対応
Kasumi Morita
a-blog cms でAMPに対応する
a-blog cms でAMPに対応する
Kasumi Morita
computer language - Html frames
computer language - Html frames
Dr. I. Uma Maheswari Maheswari
Working with Javascript in Rails
Working with Javascript in Rails
Seungkyun Nam
Error: WebForms UnobtrusiveValidationMode Requires a ScriptResourceMapping Fo...
Error: WebForms UnobtrusiveValidationMode Requires a ScriptResourceMapping Fo...
manojbkalla
Inline
Inline
ekeoguob
Black-Scholes Calculator on Web
Black-Scholes Calculator on Web
Eugene Yang
7 reasons why developers should love Joomla!
7 reasons why developers should love Joomla!
Bartłomiej Krztuk
Angular custom directives
Angular custom directives
Alexe Bogdan
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Myrteza Kertusha
Ban Cosmetic Pesticides on Schoolyards
Ban Cosmetic Pesticides on Schoolyards
Gerda Peachey
FrontEnd platform based on AngularJS
FrontEnd platform based on AngularJS
Egor Miasnikov
Cloud Best Practices
Cloud Best Practices
Eric Bottard
Cf intro for spring devs
Cf intro for spring devs
Eric Bottard
Hands On CloudFoundry
Hands On CloudFoundry
Eric Bottard
Google glass
Google glass
Egor Miasnikov
Edfi560 sm1208
Edfi560 sm1208
didiallen
Using GruntJS
Using GruntJS
Egor Miasnikov
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Myrteza Kertusha
Kikutext: Overview
Kikutext: Overview
Kikutext
Dive into AngularJS Routing
Dive into AngularJS Routing
Egor Miasnikov
Hands On Spring Data
Hands On Spring Data
Eric Bottard
LyonJUG - Combo - Quick Cloud Foundry Intro + Cloud Best Practices
LyonJUG - Combo - Quick Cloud Foundry Intro + Cloud Best Practices
Eric Bottard
Introduction to Polymer
Introduction to Polymer
Egor Miasnikov
AngularJS Custom Directives
AngularJS Custom Directives
yprodev
Distance education presentation
Distance education presentation
Wendy Woodfield
Utjecaj suvremene tehnologije na distribuciju usluga u hotelijerstvu
Utjecaj suvremene tehnologije na distribuciju usluga u hotelijerstvu
Ivana Beckett
AngularJS custom directive
AngularJS custom directive
Nascenia IT
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
EPAM Systems
More Related Content
Viewers also liked
Angular custom directives
Angular custom directives
Alexe Bogdan
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Myrteza Kertusha
Ban Cosmetic Pesticides on Schoolyards
Ban Cosmetic Pesticides on Schoolyards
Gerda Peachey
FrontEnd platform based on AngularJS
FrontEnd platform based on AngularJS
Egor Miasnikov
Cloud Best Practices
Cloud Best Practices
Eric Bottard
Cf intro for spring devs
Cf intro for spring devs
Eric Bottard
Hands On CloudFoundry
Hands On CloudFoundry
Eric Bottard
Google glass
Google glass
Egor Miasnikov
Edfi560 sm1208
Edfi560 sm1208
didiallen
Using GruntJS
Using GruntJS
Egor Miasnikov
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Myrteza Kertusha
Kikutext: Overview
Kikutext: Overview
Kikutext
Dive into AngularJS Routing
Dive into AngularJS Routing
Egor Miasnikov
Hands On Spring Data
Hands On Spring Data
Eric Bottard
LyonJUG - Combo - Quick Cloud Foundry Intro + Cloud Best Practices
LyonJUG - Combo - Quick Cloud Foundry Intro + Cloud Best Practices
Eric Bottard
Introduction to Polymer
Introduction to Polymer
Egor Miasnikov
AngularJS Custom Directives
AngularJS Custom Directives
yprodev
Distance education presentation
Distance education presentation
Wendy Woodfield
Utjecaj suvremene tehnologije na distribuciju usluga u hotelijerstvu
Utjecaj suvremene tehnologije na distribuciju usluga u hotelijerstvu
Ivana Beckett
AngularJS custom directive
AngularJS custom directive
Nascenia IT
Viewers also liked
(20)
Angular custom directives
Angular custom directives
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Ban Cosmetic Pesticides on Schoolyards
Ban Cosmetic Pesticides on Schoolyards
FrontEnd platform based on AngularJS
FrontEnd platform based on AngularJS
Cloud Best Practices
Cloud Best Practices
Cf intro for spring devs
Cf intro for spring devs
Hands On CloudFoundry
Hands On CloudFoundry
Google glass
Google glass
Edfi560 sm1208
Edfi560 sm1208
Using GruntJS
Using GruntJS
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Progetto e realizzazione di un kernel linux per il controllo dinamico degli s...
Kikutext: Overview
Kikutext: Overview
Dive into AngularJS Routing
Dive into AngularJS Routing
Hands On Spring Data
Hands On Spring Data
LyonJUG - Combo - Quick Cloud Foundry Intro + Cloud Best Practices
LyonJUG - Combo - Quick Cloud Foundry Intro + Cloud Best Practices
Introduction to Polymer
Introduction to Polymer
AngularJS Custom Directives
AngularJS Custom Directives
Distance education presentation
Distance education presentation
Utjecaj suvremene tehnologije na distribuciju usluga u hotelijerstvu
Utjecaj suvremene tehnologije na distribuciju usluga u hotelijerstvu
AngularJS custom directive
AngularJS custom directive
Similar to AngularJS - Introductions to Directives
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
EPAM Systems
A Gentle Introduction to Angular Schematics - Angular SF 2019
A Gentle Introduction to Angular Schematics - Angular SF 2019
Matt Raible
Use Angular Schematics to Simplify Your Life - Develop Denver 2019
Use Angular Schematics to Simplify Your Life - Develop Denver 2019
Matt Raible
A Gentle Introduction to Angular Schematics - Devoxx Belgium 2019
A Gentle Introduction to Angular Schematics - Devoxx Belgium 2019
Matt Raible
AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014
Ran Wahle
AngularJS Mobile Warsaw 20-10-2014
AngularJS Mobile Warsaw 20-10-2014
Dariusz Kalbarczyk
Jquery.Tmpl
Jquery.Tmpl
LearningTech
Create an application with ember
Create an application with ember
Chandra Sekar
Angular js
Angular js
prasaddammalapati
AngularJS for Java Developers
AngularJS for Java Developers
Loc Nguyen
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 Basic Training
AngularJS Basic Training
Cornel Stefanache
Angular - Beginner
Angular - Beginner
Riccardo Masetti
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
Starting with angular js
Starting with angular js
jagriti srivastava
angularJs Workshop
angularJs Workshop
Ran Wahle
Angular js
Angular js
ParmarAnisha
The Django Web Application Framework 2
The Django Web Application Framework 2
fishwarter
The Django Web Application Framework 2
The Django Web Application Framework 2
fishwarter
Similar to AngularJS - Introductions to Directives
(20)
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
A Gentle Introduction to Angular Schematics - Angular SF 2019
A Gentle Introduction to Angular Schematics - Angular SF 2019
Use Angular Schematics to Simplify Your Life - Develop Denver 2019
Use Angular Schematics to Simplify Your Life - Develop Denver 2019
A Gentle Introduction to Angular Schematics - Devoxx Belgium 2019
A Gentle Introduction to Angular Schematics - Devoxx Belgium 2019
AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014
AngularJS Mobile Warsaw 20-10-2014
AngularJS Mobile Warsaw 20-10-2014
Jquery.Tmpl
Jquery.Tmpl
Create an application with ember
Create an application with ember
Angular js
Angular js
AngularJS for Java Developers
AngularJS for Java Developers
AngularJS 101 - Everything you need to know to get started
AngularJS 101 - Everything you need to know to get started
AngularJS Basic Training
AngularJS Basic Training
Angular - Beginner
Angular - Beginner
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
Starting with angular js
Starting with angular js
angularJs Workshop
angularJs Workshop
Angular js
Angular js
The Django Web Application Framework 2
The Django Web Application Framework 2
The Django Web Application Framework 2
The Django Web Application Framework 2
Recently uploaded
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
HimanshiGarg82
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
WSO2
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
masabamasaba
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
Willy Marroquin (WillyDevNET)
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
masabamasaba
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
Presentation.STUDIO
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
Papp Krisztián
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
tonesoftg
tonesoftg
lanshi9
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
panagenda
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Steffen Staab
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
Juha-Pekka Tolvanen
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
Jittipong Loespradit
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Philip Schwarz
Recently uploaded
(20)
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
tonesoftg
tonesoftg
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
AngularJS - Introductions to Directives
1.
Egor Miasnikov 1
2.
Intro Custom
directive structure Restrict Template Replace Scope Transclude Link Compile Bootstrap UI examples 2
3.
<body> <my-awesome-site></my-awesome-site> </body> 3
4.
app.directive(‘myDirective', function() { return
{ restrict: 'AEC', replace: true, template: '<p style="color: {{color}}">Hello World</p>', link: function(scope, elem, attrs) { … }, compile: function(tElem,attrs) { … } }; }); 4
5.
A – attribute, Example:
<div my-directive></div> E – element, Example: <my-directive></ my-directive> C - class Example: <span class=“my-directive”></ span> 5
6.
Template –
inline string Example: '<p style="color: {{color}}">Hello World</p>‘ TemplateUrl – url to template.html Example:‘/views/template.html’ 6
7.
Replace: true Example: <my-directive></
my-directive> => <div>Hello world</div> Replace: false Example: <my-directive></ my-directive> => <my-directive> <div>Hello world</div> </my-directive> 7
8.
Scope: true Use a
child scope that inherits from parent Scope: false //default Don’t have any scopes, only parent Scope: {} Use a new isolated scope 8
9.
Scope: { variable1:‘@’, variable2:‘=‘, func:‘&’ }
Use “@” for One Way Text Binding Use “=“ for Two Way Binding Use “&” to Execute Functions in the Parent Scope Example: Link 9
10.
Transclude: true Example: <my-directive>Hello</my-directive> Template:
<div ng-transclude></div> On page: <div>Hello</div> 10
11.
link: function(scope, elem,
attrs) { scope.color = "white"; } 11
12.
compile: function(tElem,attrs) { //do
optional DOM transformation here return function(scope,elem,attrs) { //linking function here }; } 12
13.
? 13
Download now