Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Angular – Part Two
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
robi-y
March 12, 2016
Education
58
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Angular – Part Two
robi-y
March 12, 2016
More Decks by robi-y
See All by robi-y
se03 - requirements
robiy
1
82
תרגיל - פיתוח צד לקוח עם Angular.js
robiy
1
210
טכנולוגיה בשרות הקהילה
robiy
0
120
se02 - team
robiy
0
110
תרגיל - הכרות עם כלי הפיתוח בקורס
robiy
0
87
se-01-intro
robiy
1
98
Other Decks in Education
See All in Education
形骸化しない社内勉強会の取り組み - オーナーシップの作り方 / In-house study session
soudai
PRO
1
430
日本における応用言語学・言語教育学これまでとこれから
terasawat
0
170
Requirements Analysis and Prototyping - Lecture 3 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.8k
武藤の処世術を書いてみた
mutomasa
0
140
Réunion des directrices et directeurs des écoles de la circonscription de Jonzac - 31 août 2026
fmarot
0
160
EL GEOPARQUE MUNDIAL UNESCO VOLCANES DE CALATRAVA: DE LA INVESTIGACIÓN CIENTÍFICA A LA TRANSPOSICIÓN DIDÁCTICA EN EL AULA
juanmartin2026
0
32k
DRONEGEOGRAFÍA: INNOVACIÓN DIDÁCTICA Y FOTOGRAMETRÍA 3D PARA LA COHESIÓN TERRITORIAL Y LA CIUDADANÍA ACTIVA
juanmartin2026
0
39k
FA26 CLU MS Clinical Psychology New Student Orientation
jdbedics
0
180
An Experiment in "Cross-Cultural Exchange" as a Method for Content Creation
naoji_taniguchi_ksk_0827
0
250
1人 × AI、1か月でここまで作れる ー 数年前の外注換算3.8〜7.4億円・241〜379人月分の作業を、AI費用 約10万円・31日で
frievea
0
580
Design Guidelines and Models - Lecture 5 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.7k
実践プレゼンテーション・デザイン
dragon2
1
420
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
740
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
820
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Evolving SEO for Evolving Search Engines
ryanjones
0
330
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
Transcript
Angular – Part Two The Fun Part Begin!
םדוקה רועישה םוכיס הכ דע ונדמל המ זא ? •
Module • Directive • Two-Way Data Binding • םיקחשמ תצק HTML םידמחנ
Ng-model ךסמה לע םינוש םיביכר ןיב םירבחמ תללגנ הריחב ומכ
םיביכרל דבוע רוביחה , םירחא םיטלקו לשמל רבחתמ אוה וילא ךרעה תא לבקמ ng-bind=“review.stars” סלכתב השוע הזש המ , יונישל םאתהב הזה ךרעה תא ןכדעמ הז , ךרעה תא הארמש ךסמב ביכר שי םא זאו , תידיימ ןכדועי אוה ( Two way data binding םירכוז ? ) ןבומכ , םדוקמ ומכש , ךותמ עיגהל ךירצ לבקתמה ךרעה Controller .
ng-submit םכמצע תא םתלאש םעפ יא " ספוטה תא אלמל
ומייסש ןכדעתהל םינותנל םרוג ינא ךיא ? " הבושתה הנה זא ! ל םיחלוש טושפ ng-submit רלורטנוקב היצקנופ , הרקיש םיצור ונחנאש המ השועש , והזו !
Form Validation םיצור םא , םיספטל אודיו עצבל ןתינ (
ןיקת ליימיאש אודיו , וכו ואלומ םיטרפה לכש ).. ךירצש המ לכ : • םיטלקל ףיסונ novalidate לש תומיאה תא לטבל ידכ HTML ומצע • ב ןמסנ required הבוח אוהש טלק לכ • ל ףיסונ ng-submit ל הקידב $valid • $valid ןיקת לכהש ןמסמש רלוגנא לש יטמוטוא הנתשמ אוה
Custom Directive רוציל ןתינ Elements, Attributes ונלשמ , ונעטיש HTML
דרפנ ץבוקמ . תואבה תורטמל דעונ הז רבד : .1 דוק שי םא HTML הברה ומצע לע רזוחש ( המשרה , NavBar )... .2 ה תא ךופהל הצרנ םא HTML רתוי יתוגהנתהל ןבומכו רתוי ימאנידל . הז תא םישוע ךיא ? .1 ה קלח תא ריבענ HTML ץבוקל ונלש HTML שדח .2 רוצינ Directive ה תא ונל ריזחיש ונלשמ HTML app.directive(‘DirectiveName’, function(){ Return { . . . }; });
ךשמה רומאכ , רוציל םילוכי ונא element וא attribute ךירצ
המ טילחנ יתמ ? • Attribute – םירבד דוע םע הז תא בלשל םיכלוה ונחנא םא , רבד ותוא קוידב עיפוי דימת אל הזו • Element – יעמשמ דח והשמ הז םא , טמרופ ותואב עיפוי דימתש ( הירלג , ןיגול )... לעופב דחא לכ הז המ רכזנ ואוב ... <element attribute></element> <div class=“…” style=“…” id=“…”></div>
ךשמה בוש דוקה לע לכתסנ ואוב ... app.directive(‘DirectiveName’, function(){ return
{ restrict: ‘’, ‘E’ for Element, ‘A’ for Attribute templateUrl:’’, The HTML name controller: ‘’, Controller to Attach (next slide) controllerAs: ‘’ Controller Alias }; });
ךשמה ( בוש ) app.directive(‘DirectiveName’, function(){ return { . .
. controller: ‘’, Controller to Attach (next slide) controllerAs: ‘’ Controller Alias }; }); רלורטנוק ףיסונש המל זא ? טושפ , ונרצי עגרהש ךסמב ביכר ותוא לש םינותנהו תוילנויצקנופה תא וב בותכל לכונש ידכ
תויולת םידיקפת יפל ורדסלו דוקה תא םצמצל ךרדה . var
app = angular.module(‘ModuleName’ ,[]); ולאה םיעבורמה םיירגוסה תא םירכוז ? יולת אוה םיפסונ רלוגנא לש םילודומ וליאב לודומל עידוהל םדיקפת לבקמ אוה תומשה תא גנירטסכ לבקמ אוהש תומשה , תומש םה םילודומה
Services – Go Net Go! טנרטניא תביבסב תונכת סרוקב רכזנ
םא , ב ונשמתשה םינותנ ליבשב תרשל האירק תושעל וניצר רשאכ AJAX רשפא ןאכ םגש ןבומכ , תאז השוע רלוגנא ךיא הארנ ונחנא לבא . • $http – לש ליבקמה AJAX ש המ לכ השוע AJAX השוע סקטניס – $http( { method: ‘GET’ , url: ‘<link to server>’ } ) .success(function(data){ …. }) .error(function(error){ …. });