Home
Search results “Angular style ng if”
Angular 4 QuickStart Tutorial - Angular 4 Directives  (ngFor, ngif , ngClass, ngStyle )
 
10:29
In this angular 4 tutorial series we will be creating a new project using the angular 4 cli , show you an ngfor example by listing an array, and i will hide the array using ngif also we will take a look on ngclass and ngstyle, today it will be quick look into angular directives We will be using different structural directives in Angular 4 like ngIF, ngFor also we will be using attributes and property bind it like ngClass and ngStyle attributes. Structural and attribute directives which will be discussed in this tutorial: ngFor example as an angular list directive ngIf example ngClass ngStyle For each directive we will have in this tutorial an example: ngIf angular example, ngFor example, ngClass and ngStyle angular example.
Views: 7645 dotsway
Angular 2 Class & Style Binding Tutorial
 
11:36
Build a Full App in Angular 2: https://goo.gl/tfWZDT Learn Angular 2 Fundamentals Course (Free): https://coursetro.com/courses/8/Learn-Angular-2-Development-with-our-Free-Course We're going to learn how to dynamically control CSS classes and inline CSS styles with Angular 2. We'll also take a look at ngStyle and ngClass for controlling multiple CSS classes and inline style properties. Written tutorial: https://coursetro.com/posts/code/24/Angular-2-Class-&-Style-Binding-Tutorial - - - - - - - - - - - - - - - - - - - - - - Subscribe for NEW VIDEOS weekly! My Patreon: https://www.patreon.com/designcourse My site: https://coursetro.com My personal FB account: http://fb.com/logodesigner Coursetro FB: http://fb.com/coursetro Coursetro's Twitter: http://twitter.com/designcoursecom Join my Discord! https://discord.gg/a27CKAF ^-Chat with me and others - - - - - - - - - - - - - - - - - - - - - - Who is Gary Simon? Well, I'm a full stack developer with 2+ decades experience and I teach people how to design and code. I've created around 100+ courses for big brands like LinkedIn, Lynda.com, Pluralsight and Envato Network. Now, I focus all of my time and energy on this channel and my website Coursetro.com. Come to my discord server or add me on social media and say Hi!
Views: 19225 DesignCourse
AngularJS: ng-if, ng-repeat, ng-show, ng-hide and Bootstrap CSS framework integration
 
53:00
Covers the following: -How to do a simple search for records using AJAX together with AngularJS -How to integrate Bootstrap CSS framework as part of AnguarJS application -How to use ng-if, ng-show and ng-hide -Differences between ng-if and ng-show/ng-hide -How to work with ng-repeat -How to display multiple records using ng-repeat -How to fetch multiple rows through AJAX and bind using ng-repeat -How to make using ng-if/ng-show inside ng-repeat -Inspect various scope object when dealing with ng-if and ng-show Source code: http://www.techcbt.com/Post/354/Angular-JS-basics/how-to-work-with-ng-if-ng-repeat-bootstrap-in-angular-js
Views: 35686 Tech CBT
Angular 2 Tutorial 12: *ngIf
 
05:05
Learn what is *ngIf in Angular 2 and how to make use of it in your angular 2 application.
Views: 11488 codedamn
Angular 4 Tutorial 8: *ngIf and ng-template
 
07:57
Learn what *ngIf is and how to make use of it to dynamically toggle ng-template stuff. Full Angular 4 Playlist: https://www.youtube.com/playlist?list=PLYxzS__5yYQmi8f94KAGx1ofwFIn-FLNt codedamn is a now free platform for developers to learn and establish their credibility. Ready to be among developers? Register now! https://codedamn.com
Views: 29686 codedamn
Angular 7 Tutorial - 12 - ngIf Directive
 
07:09
Support - https://www.paypal.me/Codevolution Facebook - https://www.facebook.com/codevolutionweb Github - https://github.com/gopinav Angular | Angular Tutorial for Beginners | ngIf Directive
Views: 60305 Codevolution
AngularJS For Everyone Tutorial #9 - ngIf vs ngShow & ngHide
 
06:46
Here I show you how to use ngIf and ngShow & ngHide to show and hide content. Subscribe for more free tutorials https://goo.gl/6ljoFc, more Angular Tutorials: https://goo.gl/vFi0CQ https://docs.angularjs.org/api/ng/filter Support Free Tutorials https://www.leveluptutorials.com/store/ The best shared web hosting http://www.bluehost.com/track/leveluptutorials/ Subscribe to Level Up Pro for extra features! https://www.leveluptutorials.com/store/products/pro Subscribe to the Level Up Newsletter http://eepurl.com/AWjGz To Support Level Up Tuts: http://leveluptuts.com/donations Simple cloud hosting, built for developers.: https://www.digitalocean.com/?refcode=67357174b09e HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.
Views: 19101 LevelUpTuts
AngularJS Quiz App Tutorial (13/24) - ng-if Directive
 
07:34
The writeup for this video: https://hungryturtlecode.com/code-projects/angular-quiz-app/13-ng-if/?utm_source=YouTube&utm_medium=VideoDescription&utm_campaign=quizapp13 Part 1 of this series: https://www.youtube.com/watch?v=yordL7Yczes&index=1&list=PLqr0oBkln1FBmOjK24_B4y_VAA8736wPq The Git Repo for this project: https://github.com/adiman9/HungryTurtleFactQuiz As I briefly mentioned earlier in the series, we want to be able to display image based questions as well as questions with text. We have already taken care of the text based questions so now we can take a look at getting the image based questions sorted out. In the JSON for each question it will let us know if the question is image or text based. We can create the markup to display the image from the URL given in the image questions. But then we want only the text markup or only the image markup to display depending on which type of question it is. In other words, we do not want the text markup to display if it is an image question and vice versa. Angular allows us to conditionally render markup using another directive called ng-if. Ng-if takes an expression and evaluates it. If it evaluates to true it will render that element out as normal but if it evaluates to false it will not even print that element on to the screen at all. Support Me On Patreon https://www.patreon.com/hungryturtlecode One Off Donations: PayPal - https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9U29S2BET5K54 Credit / debit card - https://hungryturtlecode.com/donate Bitcoin: 39iDX27ZSkYtRhUrH5r5YN128wEjwDmSYp Ethereum: 0x38b3cBF8Ee3EeeeA33D1925bA0ce0e90c8EcFD46 ZenCash: znanBCHpWJecBwZZmft9r5QzbzRX4nQn6Dz Check Out The Site! https://hungryturtlecode.com/?utm_source=YouTube&utm_medium=VideoDescription&utm_campaign=quizapp13 SUBSCRIBE! http://www.youtube.com/hungryturtledev?sub_confirmation=1 Join the Community! Patreon - https://www.patreon.com/hungryturtlecode Follow Me -- https://twitter.com/hungryturtledev Like Me -- https://www.facebook.com/hungryturtlecode/ linkedin -- https://www.linkedin.com/company/hungry-turtle-code Github (Personal) -- https://github.com/adiman9 Github (Hungry Turtle Code) -- https://github.com/HungryTurtleCode
Views: 3209 Hungry Turtle Code
Angular 2: Attribute Directives, ngClass, ngStyle
 
06:14
Attribute directives are designed to change the appearance or behavior of the DOM elements that they are attached to. In this lecture, you will learn how to use inbuilt ngClass and ngStyle attribute directives.
Views: 3241 GeekHours
Angular 4 - NgIf Else Directive
 
02:29
My Learn Ionic 3 From Scratch Course - https://www.udemy.com/learn-ionic-3-from-scratch/?couponCode=IONIC3MAY Support the content: https://www.patreon.com/PaulHalliday Angular 4 - NgIf Else Directive Make dynamic templates using *ngIf and the accompanying else statement. For more Ionic 2 information check out http://learnionic2.com. For everything else: http://pwhsoftware.com The extra epic content always comes via email first. Sign up so you're not left behind: http://eepurl.com/cBCqO9 Want to support more awesome tutorials? You can buy me a coffee! https://learnionic2.com/buy-me-a-coffee/ You can also find me: http://twitter.com/PWHSoftware http://linkedin.com/in/paulhal
Views: 3915 Paul Halliday
💥 Angular Directives Tutorial For Beginners - ngIf - Learn Multiple Ways To Show / Hide Components
 
04:02
Check out our Angular for Beginners Free Course - https://angular-university.io/course/getting-started-with-angular2?utm=yt-free-course This Angular tutorial covers the use of the core directive ngIf, as well as two other alternative way of showing or hiding elements from the DOM: the hidden property and the visibility CSS property. For more videos tutorials on Angular, have a look at the courses available in the Angular University - https://angular-university.io Follow us: Twitter - https://twitter.com/AngularUniv Google+ - https://plus.google.com/u/1/113731658724752465218 Facebook - https://www.facebook.com/angular.university Check out the PDF E-Books available at the Angular University - https://angular-university.io/my-ebooks
Views: 4926 Angular University
Angular 4 Style Binding
 
04:02
This video is from my Free Angular 4 Course: https://goo.gl/T5fqeB Written tutorial: https://goo.gl/7bXgqe http://coursetro.com for more! - - - - - - - - - - - - - - - - - - - - - - Subscribe for NEW VIDEOS weekly! My Patreon: https://www.patreon.com/designcourse My site: https://coursetro.com My personal FB account: http://fb.com/logodesigner Coursetro FB: http://fb.com/coursetro Coursetro's Twitter: http://twitter.com/designcoursecom Join my Discord! https://discord.gg/a27CKAF ^-Chat with me and others - - - - - - - - - - - - - - - - - - - - - - Who is Gary Simon? Well, I'm a full stack developer with 2+ decades experience and I teach people how to design and code. I've created around 100+ courses for big brands like LinkedIn, Lynda.com, Pluralsight and Envato Network. Now, I focus all of my time and energy on this channel and my website Coursetro.com. Come to my discord server or add me on social media and say Hi!
Views: 19133 DesignCourse
Be MEAN: Angular1 (AULA 10) ng-style, ng-class e ng-if
 
20:34
Continuando a série sobre estilização vamos aprender a usar o ng-style, ng-class e ng-if. Todas nossas aulas estão disponíveis via torrent em: http://videos.webschool.io/ Site oficial: http://webschool.io/bemean Repositório oficial: https://github.com/Webschool-io/be-mean-instagram EXERCÍCIOS: crie uma pasta com o nome do seu usuário do github e coloque sua resposta e seus arquivos dentro e envie aqui https://github.com/Webschool-io/be-mean-instagram-angular1-exercises
Style binding in angular 2
 
07:10
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/06/style-binding-in-angular-2.html Slides http://csharp-video-tutorials.blogspot.com/2017/06/style-binding-in-angular-2_29.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss Style binding in Angular with examples. Setting inline styles with style binding is very similar to setting CSS classes with class binding. Please wtach Class binding video from Angular 2 tutorial before proceeding with this video. Notice in the example below, we have set the font color of the button using the style attribute. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button style="color:red"]My Button[/button] ` }) export class AppComponent { } The following example sets a single style (font-weight). If the property 'isBold' is true, then font-weight style is set to bold else normal. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button style='color:red' [style.font-weight]="isBold ? 'bold' : 'normal'"]My Button [/button] ` }) export class AppComponent { isBold: boolean = true; } style property name can be written in either dash-case or camelCase. For example, font-weight style can also be written using camel case - fontWeight. Some styles like font-size have a unit extension. To set font-size in pixels use the following syntax. This example sets font-size to 30 pixels. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button style='color:red' [style.font-size.px]="fontSize"]My Button [/button] ` }) export class AppComponent { fontSize: number = 30; } To set multiple inline styles use NgStyle directive 1. Notice the color style is added using the style attribute 2. ngStyle is binded to addStyles() method of the AppComponent class 3. addStyles() method returns an object with 2 key/value pairs. The key is a style name, and the value is a value for the respective style property or an expression that returns the style value. 4. let is a new type of variable declaration in JavaScript. 5. let is similar to var in some respects but allows us to avoid some of the common “gotchas” that we run into when using var. 6. The differences between let and var are beyond the scope of this video. For our example, var also works fine. 7. As TypeScript is a superset of JavaScript, it supports let import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button style='color:red' [ngStyle]="addStyles()"]My Button[/button] ` }) export class AppComponent { isBold: boolean = true; fontSize: number = 30; isItalic: boolean = true; addStyles() { let styles = { 'font-weight': this.isBold ? 'bold' : 'normal', 'font-style': this.isItalic ? 'italic' : 'normal', 'font-size.px': this.fontSize }; return styles; } }
Views: 60998 kudvenkat
AngularJS Quiz App Tutorial (23/24) - More Work with ng if directive
 
05:03
The writeup for this video: https://hungryturtlecode.com/code-projects/angular-quiz-app/23-angular-ng-if/?utm_source=YouTube&utm_medium=VideoDescription&utm_campaign=quizapp23 Part 1 of the Series: https://www.youtube.com/watch?v=yordL7Yczes&index=1&list=PLqr0oBkln1FBmOjK24_B4y_VAA8736wPq The Git Repo for this project: https://github.com/adiman9/HungryTurtleFactQuiz We are now up to the penultimate video in this series on AngularJS and in this part we are going to finish off the styling of the results section by allowing image based questions to display nicely and allow the correct styling on the images for when the answer is right and for when it is wrong. We will do this using the class method we created earlier and then use our own custom css to style that with the desired border. Support Me On Patreon https://www.patreon.com/hungryturtlecode One Off Donations: PayPal - https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9U29S2BET5K54 Credit / debit card - https://hungryturtlecode.com/donate Bitcoin: 39iDX27ZSkYtRhUrH5r5YN128wEjwDmSYp Ethereum: 0x38b3cBF8Ee3EeeeA33D1925bA0ce0e90c8EcFD46 ZenCash: znanBCHpWJecBwZZmft9r5QzbzRX4nQn6Dz Check Out The Site! https://hungryturtlecode.com/?utm_source=YouTube&utm_medium=VideoDescription&utm_campaign=quizapp23 SUBSCRIBE! http://www.youtube.com/hungryturtledev?sub_confirmation=1 Join the Community! Patreon - https://www.patreon.com/hungryturtlecode Follow Me -- https://twitter.com/hungryturtledev Like Me -- https://www.facebook.com/hungryturtlecode/ linkedin -- https://www.linkedin.com/company/hungry-turtle-code Github (Personal) -- https://github.com/adiman9 Github (Hungry Turtle Code) -- https://github.com/HungryTurtleCode
Views: 1924 Hungry Turtle Code
Learn How to Use NG-STYLE with AngularJS
 
05:04
Learn How to Use NG-STYLE with AngularJS. Best Course To Learn React in 2018: https://click.linksynergy.com/fs-bin/click?id=KxXQN2CV9Bk&offerid=358574.7493&type=3&subid=0 Learn Advanced React and Redux: https://click.linksynergy.com/fs-bin/click?id=KxXQN2CV9Bk&offerid=358574.7494&type=3&subid=0 Take my course and learn JavaScript in 2018: https://theodoreanderson.teachable.com/p/introduction-to-javascript Best book to learn the MEAN Stack: http://amzn.to/2DqEf4s Best book on learning advanced JavaScript: http://amzn.to/2C2oEM8 My site: https://thejavascriptchronicles.com
Views: 669 Theodore Anderson
Difference between AngularJS, Angular 2 and Angular 4
 
08:01
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/09/difference-between-angularjs-angular-2.html Slides http://csharp-video-tutorials.blogspot.com/2017/09/difference-between-angularjs-angular-2_13.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists So far Google has released 3 versions of Angular Version Year ------------ ------ AngularJS 2010 Angular 2 2016 Angular 4 2017 What is the difference between AngularJS and Angular 2 The first version of Angular is called AngularJS and was released in the year 2010. Some people call it Angular 1, but it is officially called AngularJS. Angular 2 is released in the year 2016. The most important thing to keep in mind is that, Angular 2 is not a simple upgrade from angular 1. Angular 2 is completely rewritten from the ground up and as a result the way we write applications with AngularJS and Angular 2 is very different. From a performance standpoint, Angular 2 is 5 times faster compared to AngularJS. AngularJS was not built for mobile devices, where as Angular 2 on the other hand is designed from the ground up with mobile support in mind. With Angular 2 we have more language choices. In additon to nativa JavaScript we can use TypeScript, Dart, PureScript, Elm, etc. Angular 4 is released in 2017. So, What is the difference between Angular 2 and Angular 4 If you have worked with both Angular 1 and Angular 2, then you already know that the API's and patterns that we use to build applications are very different between these 2 versions. From a developer stand point, it is like learning 2 different frameworks. Since Angular 2 is a complete rewrite from Angular 1, moving from Angular 1 to Angular 2 is a total breaking change. However, changing from Angular 2 to Angular 4 and even future versions of Angular, won’t be like changing from Angular 1. It won’t be a complete rewrite, it will simply be a change in some core libraries. From a developer standpoint, building an application using Angular 2 and Angular 4 is not very different. We still use the same concepts and patterns. Angular 4 is simply, the next version of Angular 2. The underlying concepts are still the same and if you have already learnt Angular 2 then you’re well prepared to switch to Angular 4. The most important point to keep in mind is, Angular 4 is backwards compatible with Angular 2 for most applications. What has changed and what is new in Angular 4 Some under the hood changes to reduce the size of the AOT (Ahead-of-Time) compiler generated code. Migrating to Angular 4 may reduce the production bundles by hundreds of kilobytes. As a developer this change will not affect the way we write angular applications in any way. TypeScript 2.1 and 2.2 compatibility. Angular is updated with a more recent version of TypeScript, for better type checking throughout our application. Up until Angular 4, only TypeScript 1.8 was supported. With Angular 4, we can use typescript 2.1 or 2.2 which means we can use all the new features of TypeScript with Angular 4. Animation features are pulled out of @angular/core and are moved into their own package. This means that if you don’t use animations, this extra code will not end up in your production bundles. On the other hand, if you do have animations in your application, you may have to change your existing code to pull the animation features from the animations package. We can now use an if/else style syntax with *ngIf structural directive. In Angular 2, to implement if/else logic, we use 2 *ngIf structural directives. With Angular 4, we can use it's new if/else style syntax with *ngIf structural directive. We will discuss an example of this in our upcoming videos. What happened to Angular 3. Why did we move straight from Angular 2 to Angular 4. What is the reason for skipping Angular 3. Except the Router library, all the other Angular core libraries are versioned the same way and are shipped as NPM packages as you can see below. While all the other core angular packages are at Version 2, the router library is already at Version 3. Due to this misalignment of the router package’s version, the angular team decided to go straight for Angular v4. This way, all the core packages are aligned which will be easier to maintain and help avoid confusion in the future. Common Questions Do I have to learn AngularJS 1 before learning Angular 2 Do I have to learn Angular 2 before learning Angular 4
Views: 75456 kudvenkat
Class binding in angular 2
 
11:05
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/06/class-binding-in-angular-2.html Slides http://csharp-video-tutorials.blogspot.com/2017/06/class-binding-in-angular-2_28.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss CSS Class binding in Angular with examples. For the demos in this video, we will use same example we have been working with so far in this video series. In styles.css file include the following 3 CSS classes. If you recollect styles.css is already referenced in our host page - index.html. .boldClass{ font-weight:bold; } .italicsClass{ font-style:italic; } .colorClass{ color:red; } In app.component.ts, include a button element as shown below. Notice we have set the class attribute of the button element to 'colorClass'. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button class='colorClass']My Button[/button] ` }) export class AppComponent { } At this point, run the application and notice that the 'colorClass' is added to the button element as expected. Replace all the existing css classes with one or more classes Modify the code in app.component.ts as shown below. We have introduced a property 'classesToApply' in AppComponent class We have also specified class binding for the button element. The word 'class' is in a pair of square brackets and it is binded to the property 'classesToApply' This will replace the existing css classes of the button with classes specified in the class binding import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button class='colorClass' [class]='classesToApply']My Button[/button] ` }) export class AppComponent { classesToApply: string = 'italicsClass boldClass'; } Run the application and notice 'colorClass' is removed and these classes (italicsClass & boldClass) are added. Adding or removing a single class : To add or remove a single class, include the prefix 'class' in a pair of square brackets, followed by a DOT and then the name of the class that you want to add or remove. The following example adds boldClass to the button element. Notice it does not remove the existing colorClass already added using the class attribute. If you change applyBoldClass property to false or remove the property altogether from the AppComponent class, css class boldClass is not added to the button element. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button class='colorClass' [class.boldClass]='applyBoldClass']My Button[/button] ` }) export class AppComponent { applyBoldClass: boolean = true; } With class binding we can also use ! symbol. Notice in the example below applyBoldClass is set to false. Since we have used ! in the class binding the class is added as expected. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button class='colorClass' [class.boldClass]='!applyBoldClass']My Button[/button] ` }) export class AppComponent { applyBoldClass: boolean = false; } You can also removed an existing class that is already applied. Consider the following example. Notice we have 3 classes (colorClass, boldClass & italicsClass) added to the button element using the class attribute. The class binding removes the boldClass. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button class='colorClass boldClass italicsClass' [class.boldClass]='applyBoldClass']My Button[/button] ` }) export class AppComponent { applyBoldClass: boolean = false; }
Views: 80576 kudvenkat
Angular 2 0 Common ngfor ngif directives
 
05:47
Angular 2 0 Common ngfor ngif directives
Views: 34 Tarun Sharma
💥 Angular Component Styling - Watch Component Style Isolation In Action, Learn How It Works
 
06:27
This video is part of the Angular Library Laboratory Course - https://angular-university.io/course/angular-advanced-course?utm=yt-ll-1-c&grpp=t&couponCode=ANGULAR_LIB_LAB_YOUTUBE One of the topics that we will come across while designing third-party libraries is style isolation. Very often while developing applications we tend to use simply plain CSS, which works great especially if we are using a third party library like Bootstrap. But if we want to ship components to other applications, we can make our components much more reusable and easy to deploy if we isolate some of the styles of the component. For example the more structural styles of the component, such as for example the way the component internal elements are positioned internally: those are great candidates for style isolation. For more videos tutorials on Angular, check the Angular University website - https://angular-university.io Follow us: Twitter - https://twitter.com/AngularUniv Google+ - https://plus.google.com/u/1/113731658724752465218 Facebook - https://www.facebook.com/angular.university Check out the PDF E-Books available at the Angular University - https://angular-university.io/my-ebooks
Views: 8361 Angular University
AngularJS For Everyone Tutorial #8 - Conditional Classes With ngClass
 
10:32
Here we show you how to set classes conditionally in AngularJS. Subscribe for more free tutorials https://goo.gl/6ljoFc, more Angular Tutorials: https://goo.gl/vFi0CQ https://docs.angularjs.org/api/ng/filter Support Free Tutorials https://www.leveluptutorials.com/store/ The best shared web hosting http://www.bluehost.com/track/leveluptutorials/ Subscribe to Level Up Pro for extra features! http://leveluptuts.com/level-up-pro Subscribe to the Level Up Newsletter http://eepurl.com/AWjGz To Support Level Up Tuts: http://leveluptuts.com/donations Simple cloud hosting, built for developers.: https://www.digitalocean.com/?refcode=67357174b09e HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.
Views: 20765 LevelUpTuts
#11 Ng-Style
 
10:13
Holla ketemu lagi dengan w. Pada kesempatan kali ini w akan ngebahas bagaimana menggunakan ng-style pada angular ionic. So stay tune with me guys.. ============================================ FP: https://web.facebook.com/tutorialionicindo/
Views: 1399 HRVlogs
Angular 2 Tutorial #10 NgIf And NgFor ( हिन्दी)
 
05:29
Programming in Hindi ( हिन्दी) Angular 2 Tutorial introduces you to the essentials of this "superheroic" framework, including powerful features such as rich templates, change detection, user interactions, two-way data binding, comprehensive routing, and dependency injection.... Topics include: What is Angular? Setting up an Angular template Creating a component Binding events and properties Getting data to components Using directives and pipes Creating Angular forms Validating form data Understanding dependency injection Providing services Full Source Code available on GitHub :-https://github.com/CsgeeksYoutube/Angular-2 Angular 4:---https://www.youtube.com/playlist?list=PLgPJX9sVy92y8p1ax7Twnsn_YtQMHqqMp MEAN Stack Tutorial :-----https://www.youtube.com/playlist?list=PLgPJX9sVy92ywOAYayY7MnljGCaNY-8v5 Learn NodeJS:----- https://www.youtube.com/playlist?list=PLgPJX9sVy92wCSjrOcAlIaCXMi8wrrv_d NodeJS + Express JS:----https://www.youtube.com/playlist?list=PLgPJX9sVy92zI5qCkrkepXfGiRLXdCoAx MongoDB :----https://www.youtube.com/playlist?list=PLgPJX9sVy92xUxpTFgAOSBHdBwIdxav39 Learn javascript :---- https://www.youtube.com/playlist?list=PLgPJX9sVy92yiBtI86AACy5XII2Cxlzbj Learn Bootstrap:-- https://www.youtube.com/playlist?list=PLgPJX9sVy92wc38jA6JtvkA4l1xmJcKKH Learn XHTML and CSS:--- https://www.youtube.com/playlist?list=PLgPJX9sVy92w1pmbv9S1G6jdyCuMDFVek Please support us by Paytm:--9634533596 ---------------------------------------------------------------------- Laptop I used :--- http://fkrt.it/Gq49vLuuuN Mic I used :--- http://fkrt.it/Gi2DyLuuuN ----------------------------------------------------------------------
Views: 800 CS Geeks
Angular 6 ng-template et ng-if - cacher un element
 
01:38
Ne pas afficher une ligne lorsque un champ est vide
Views: 112 angular6-francais
Angular 7 Tutorial - 8 - Style Binding
 
04:20
Support - https://www.paypal.me/Codevolution Facebook - https://www.facebook.com/codevolutionweb Github - https://github.com/gopinav Angular | Angular Tutorial for Beginners | Angular Style Binding
Views: 59852 Codevolution
Angular5 - Style Binding Tutorial
 
05:22
Angular 4 / 5 - How to perform Style Binding using ngStyle directive
Views: 544 Coders Range
AngularJS ng-class
 
05:57
ngClass makes applying conditional CSS classes a breeze.
Views: 12151 Joe Maddalone
AngularJS Tutorial #13 - ng-click directive
 
11:40
Yo gang, in this AngularJS tutorial, I'll show you how we can use the ng-click directive to respond to a user clicking on elements within our application. In this video we'll walk through 2 ng-click examples. Hey gang, in this AngularJS tutorial, I'll be introducing you to filters and how we can use them to change the way our data is displayed to a user. Filters can be used in conjunction with ng-repeat, or directly on the expression itself. We use Angular filters to do things like ordering a list of items alphabetically, or by type, or to display numbers as a currency. ----- COURSE LINKS: + Source files on GitHub - https://github.com/iamshaunjp/angular-js-playlist + Atom text editor - https://atom.io/ --------------------------------------------------------------------------------------------- You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage... SUBSCRIBE TO CHANNEL - https://www.youtube.com/channel/UCW5Y... ========== JavaScript for Beginners Playlist ========== https://www.youtube.com/playlist?list... ============ CSS for Beginners Playlist ============= https://www.youtube.com/playlist?list... ============== The Net Ninja ===================== For more front-end development tutorials & to black-belt your coding skills, head over to http://thenetninja.co.uk ================== Social Links ================== Twitter - @TheNetNinja - https://twitter.com/thenetninjauk
Views: 27471 The Net Ninja
Angular forms tutorial
 
17:29
In Part 2 of Angular CRUD tutorial, we discussed performing the READ operation. In this video and in the next few videos we will discuss performing the CREATE operation. To understand the CREATE operation, let us build a form that help us create a new employee. For this we will use the createEmployee component that we already created in one of our previous videos in this series. Along the way, we will also discuss performing validation and displaying meaningful error messages to the user. There are 2 ways to create forms in Angular 1. Template Driven Forms 2. Model Driven Forms (Commonly called Reactive Forms) Both these approaches have their own pros and cons. For example, Template Driven forms are generally used to create simple forms. On the other hand, Reactive forms are used to create complex forms. For example, if you want to add form controls dynamically or perform cross-field validation we use the Reactive forms approach. There are several other differences, between Template driven and Reactive forms. We will discuss those differences in detail, in a later video. In this video, we will use the Template driven approach to build the "Create Employee" form. As the name implies, template driven forms are heavy on the template. This means we do most of the work in the view template of the component. Design "Create Employee" form. To keep this simple, at the moment we only have 2 fields (Full Name & Email). We will add the other fields like Gender, Department, Phone Number etc.. later. Also, at the moment, we only have textboxes on our form. In our upcoming videos we will discuss working with radio buttons, checkbox, dropdownlist etc For the form HTML, please refer to our blog using the below link. http://csharp-video-tutorials.blogspot.com/2017/12/angular-forms-tutorial.html Code Explanation: We are using Bootstrap CSS classes like panel, panel-primary, panel-heading, panel-title etc to style the form. There is no Angular here. If you are new to bootstrap, please click here to check out our Bootstrap tutorial using the following link http://csharp-video-tutorials.blogspot.com/2016/05/bootstrap-tutorial-for-beginners.html Consider the following line of code [form #employeeForm="ngForm" (ngSubmit)="saveEmployee(employeeForm)"] #employeeForm is called the template reference variable. Notice we have assigned "ngForm" as the value for the template reference variable employeeForm. So employeeForm variable holds a reference to the form. When Angular sees a form tag, it automatically attaches the ngForm directive to it. The ngForm directive supplements the form element with additional features. It holds all the form controls that we create with ngModel directive and name attribute, and monitors their properties like value, dirty, touched, valid etc. The form also has all these properties. We will discuss these properties at the individual control level and at the form level in detail in our upcoming videos. The ngSubmit directive submits the form when we hit the enter key or when we click the Submit button. When the form is submitted, saveEmployee() method is called and we are passing it the employeeForm. We do not have this method yet. We will create it in the component class in just a bit. The ngForm directive is provided by Angular FormsModule. So for us to be able to use it, we will have to import the FormsModule in our AppModule file (app.module.ts). So please make sure to include the following import statement. Also include "FormsModule" in the imports array of @NgModule decorator. import { FormsModule } from '@angular/forms'; If "FormsModule" is not imported you will see the following error in the browser developer tools there is no directive with exportas set to ngform The ngModel directive is used for creating two-way data binding i.e to keep the HTML element value and it's corresponding component property in sync. We discussed two-way data binding in detail in our Angular 2 course. Use the link below to watch two-way data binding video. https://www.youtube.com/watch?v=aBf1nLGuVz8&index=15&list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Text version of the video http://csharp-video-tutorials.blogspot.com/2017/12/angular-forms-tutorial.html Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-forms-tutorial-slides.html Angular CRUD Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 40255 kudvenkat
Angular 6 Basics 16 - Styling Angular components
 
08:56
Access the full course here: https://javabrains.io/courses/angular_basics Learn how to add styling to your Angular components. Understand how Angular manages styling by encapsulating CSS classes and how it affects the way you style your Angular components. Angular 6 Basics - Learn how to create Angular applications from scratch. Understand the Angular framework and learn how to use the features of the framework to create components and services. Use modules to organize your code. Build applications that call REST APIs and fetch data from a server. Implement routing to show multiple views with multiple URLs. This course requires no previous knowledge of Angular or AngularJS.
Views: 9693 Java Brains
Digging into Angular Style Guide Decisions - John Papa
 
18:42
www.ng-conf.org ng-conf is a two day, single track conference focused on delivering the highest quality training in the Angular JavaScript framework. 500 to 700 Developers from across the country will converge on beautiful Salt Lake City, UT to participate in training sessions by the Google Angular team, and other Angular experts. In addition to the invaluable training, ng-conf will deliver a premier conference experience for attendees, providing opportunities to network with other developers, relax at social events, and engage in some of the unique entertainment opportunities available in Utah.
Views: 16562 ng-conf
Angular 5 Tutorial in Hindi Part 15: Angular 5 NgStyle in Hindi | NgStyle Directive in Angular 5
 
07:48
Welcome all, we will see Angular 5 ngStyle in Hindi | NgStyle Directive in Angular 5 in Hindi. The NgStyle directive lets you set a given DOM elements style properties. There are a ton of options to style our components using ngClass and ngStyle, so it's important to know which one to use when and why. Here is a short summary: most styles can be added simply to the HTML directly, for those we can simply add them to the class property, and no special Angular functionality is needed Many state styles can be used using browser-supported pseudo-class selectors such as :focus, we should prefer those conventional solutions for those cases for state styles that don't have a pseudo-class selector linked to it, its best to go with ngClass if the ngClass expressions get too big, it's a good idea to move the calculation of the styles to the component class only for situations where we have a dynamically calculated embedded style should we use ngStyle, this should be rarely needed Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines. Don't Forget to Follow me on all Social Network, Instagram Link: https://www.instagram.com/vinodthapa55 Facebook Link: https://www.facebook.com/vinodthapa55 Twitter Link: https://twitter.com/vb55thapa Facebook ThapaTechnical Page Link: https://www.facebook.com/vinodbahadur...
Views: 969 Thapa Technical
Using Bootstrap with Angular
 
36:32
#1 Online Course: Angular 2 - The Complete Guide (http://codingthesmartway.com/courses/angular2-complete-guide) Premium Angular 2 Bootstrap Theme: http://codingthesmartway.com/themes/creativetim/ Using Bootstrap with Angular Bootstrap is the most popular HTML, CSS, and JavaScript framework for web front-end development. It's great for developing responsive, mobile-first web sites. The Bootstrap framework can be used together with modern JavaScript web & mobile frameworks like Angular. In the this tutorial you'll learn how to use the Bootstrap framework in your Angular project. Furthermore we'll take a look at the Ng-Bootstrap project which delivers Angular Bootstrap components which can be used out of the box. This is a CodingTheSmartWay.com tutorial Support us with just one cup of coffee: https://www.buymeacoffee.com/ctsw --------------------- Musik: Night Owl by Broke For Free is licensed under a Creative Commons Attribution License. (http://freemusicarchive.org/music/Broke_For_Free/Directionless_EP/Broke_For_Free_-_Directionless_EP_-_01_Night_Owl) DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, we’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for the support!
Views: 94912 CodingTheSmartWay.com
💥 Angular Directives Tutorial For Beginners - Style Angular Components - ngClass and NgStyle
 
03:03
Check out our Angular for Beginners Free Course - https://angular-university.io/course/getting-started-with-angular2?utm=yt-free-course This Angular Tutorial is an overview of how to use the ngClass and ngStyle Directives when to use which, and alternative syntax in case we only to modify one property/style. For more videos tutorials on Angular, have a look at the courses available in the Angular University - https://angular-university.io Follow us: Twitter - https://twitter.com/AngularUniv Google+ - https://plus.google.com/u/1/113731658724752465218 Facebook - https://www.facebook.com/angular.university Check out the PDF E-Books available at the Angular University - https://angular-university.io/my-ebooks
Views: 1280 Angular University
Learn Angular how to toggle elements
 
08:03
Learn Angular how to toggle elements with *ngIf
Views: 1346 Web Developer Ninja
Angular ngFor directive
 
09:10
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/07/angular-ngfor-directive.html Slides http://csharp-video-tutorials.blogspot.com/2017/07/angular-ngfor-directive_12.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss another structural directive - ngFor in Angular. Let us understand ngFor structural directive with an example. Consider the following array of Employee objects. employees : any[]= [ { code: 'emp101', name: 'Tom', gender: 'Male', annualSalary: 5500, dateOfBirth: '25/6/1988' }, { code: 'emp102', name: 'Alex', gender: 'Male', annualSalary: 5700.95, dateOfBirth: '9/6/1982' }, { code: 'emp103', name: 'Mike', gender: 'Male', annualSalary: 5900, dateOfBirth: '12/8/1979' }, { code: 'emp104', name: 'Mary', gender: 'Female', annualSalary: 6500.826, dateOfBirth: '14/10/1980' }, ]; We want to display these employees in a table on a web page. Step 1 : Add a new TypeScript file to the "employee" folder. Name it employeeList.component.ts. Copy and paste the following code in it. import { Component } from '@angular/core'; @Component({ selector: 'list-employee', templateUrl: 'app/employee/employeeList.component.html', styleUrls: ['app/employee/employeeList.component.css'] }) export class EmployeeListComponent { employees : any[]= [ { code: 'emp101', name: 'Tom', gender: 'Male', annualSalary: 5500, dateOfBirth: '25/6/1988' }, { code: 'emp102', name: 'Alex', gender: 'Male', annualSalary: 5700.95, dateOfBirth: '9/6/1982' }, { code: 'emp103', name: 'Mike', gender: 'Male', annualSalary: 5900, dateOfBirth: '12/8/1979' }, { code: 'emp104', name: 'Mary', gender: 'Female', annualSalary: 6500.826, dateOfBirth: '14/10/1980' }, ]; } Step 2 : Add a new HTML page to the "employee" folder. Name it employeeList.component.html. Copy and paste the following code in it. Please note : 1. ngFor is usually used to display an array of items 2. Since ngFor is a structutal directive it is prefixed with * 3. *ngFor='let employee of employees' - In this example 'employee' is called template input variable, which can be accessed by the 4. [tr] element and any of it's child elements. 5. ngIf structural directive displays the row "No employees to display" when employees property does not exist or when there are ZERO employees in the array. [table] [thead] [tr] [th]Code[/th] [th]Name[/th] [th]Gender[/th] [th]Annual Salary[/th] [th]Date of Birth[/th] [/tr] [/thead] [tbody] [tr *ngFor='let employee of employees'] [td]{{employee.code}}[/td] [td]{{employee.name}}[/td] [td]{{employee.gender}}[/td] [td]{{employee.annualSalary}}[/td] [td]{{employee.dateOfBirth}}[/td] [/tr] [tr *ngIf="!employees || employees.length==0"] [td colspan="5"] No employees to display [/td] [/tr] [/tbody] [/table] Step 3 : Add a new StyleSheet to the "employee" folder. Name it employeeList.component.css. Copy and paste the following code in it. table { color: #369; font-family: Arial, Helvetica, sans-serif; font-size: large; border-collapse: collapse; } td { border: 1px solid #369; padding:5px; } th{ border: 1px solid #369; padding:5px; } Step 4 : In the root module, i.e app.module.ts, import employeeList component and add it to the declarations array as shown below. import { EmployeeListComponent } from './employee/employeeList.component'; @NgModule({ imports: [BrowserModule], declarations: [AppComponent, EmployeeComponent, EmployeeListComponent], bootstrap: [AppComponent] }) export class AppModule { } Step 5 : In the root component, i.e app.component.ts use employeeList component as a directive @Component({ selector: 'my-app', template: `[list-employee][/list-employee] ` }) At this point, run the application and notice the employees are displayed in the table as expected.
Views: 71551 kudvenkat
Angular 5 tutorial | ngStyle in Angular with example | style binding
 
06:16
Angular provides a built-in directive, ngStyle, to modify a component or element's style attribute.
💥 Learn The Angular Host Context CSS Selector, See the CLI SAAS integration In Action
 
04:17
This video is part of the Angular Advanced Library Laboratory: Build Your Own Library Course - https://angular-university.io/course/angular-advanced-course?utm=yt-ll-1-c&grpp=t&couponCode=ANGULAR_LIB_LAB_YOUTUBE One of the benefits of using the Angular style isolation mechanism is that in the end, we tend to have simpler and more readable CSS. And this is mostly because we don't need as many higher-specificity styles as before. This is because the Angular style isolation mechanism will transparently both increase the specificity of our component styles plus it will ensure that are constrained to only elements that are part of the component template. But there are still occasions where we would like to style elements outside the component, for example for theming purposes. To support those use cases, we have available the host - context pseudo-selector which is covered in this video: For more videos tutorials on Angular, check the Angular University website - https://angular-university.io Follow us: Twitter - https://twitter.com/AngularUniv Google+ - https://plus.google.com/u/1/113731658724752465218 Facebook - https://www.facebook.com/angular.university Check out the PDF E-Books available at the Angular University - https://angular-university.io/my-ebooks
Views: 3670 Angular University
introduction to Angular JS  p1
 
14:37
Learn Test Driven Development with awesome examples. Start learning Angluar JS Unit Testing using WebStorm. check out : "Learn and Understand AngularJS tutorials" : http://bit.ly/angularjstutorials next tut (part 2) : https://www.youtube.com/watch?v=Q4zn3M6KaYE Angular JS In software development, AngularJS (commonly referred to as "Angular") is an open-source web application framework maintained by Google and by a community of individual developers and corporations to address many of the challenges encountered in developing single-page applications. It aims to simplify both the development and the testing of such applications by providing a framework for client-side model–view–controller (MVC) architecture, along with components commonly used in rich Internet applications. The AngularJS library works by first reading the HTML page, which has embedded into it additional custom tag attributes. Angular interprets those attributes as directives to bind input or output parts of the page to a model that is represented by standard JavaScript variables. The values of those JavaScript variables can be manually set within the code, or retrieved from static or dynamic JSON resources. AngularJS directives allow the developer to specify custom and reusable HTML-like elements and attributes that define data bindings and the behavior of presentation components. Some of the most commonly used directives are: ng-app Sets the text of a DOM element to the value of an expression. Any changes to the variable ‘name’ in the application's scope are reflected instantly in the DOM. ng-model Similar to ng-bind, but establishes a two-way data binding between the view and the scope. ng-model-options Allows tuning how model updates are done. ng-class Allows class attributes to be dynamically loaded. ng-controller Specifies a JavaScript controller class that evaluates HTML expressions. ng-repeat Instantiate an element once per item from a collection. ng-show & ng-hide Conditionally show or hide an element, depending on the value of a boolean expression. Show and hide is achieved by setting the CSS display style. ng-switch Conditionally instantiate one template from a set of choices, depending on the value of a selection expression. ng-view The base directive responsible for handling routes that resolve JSON before rendering templates driven by specified controllers. ng-if Basic if statement directive that allow to show the following element if the conditions are true. When the condition is false, the element is removed from the DOM. When true, a clone of the compiled element is re-inserted ng-aria A module for accessibility support of common ARIA attributes. ng-animate A module provides support for JavaScript, CSS3 transition and CSS3 keyframe animation hooks within existing core and custom directives..
Views: 103 Thanxman Uk
Angular ngFor trackBy
 
11:32
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/07/angular-ngfor-trackby.html Slides http://csharp-video-tutorials.blogspot.com/2017/07/angular-ngfor-trackby_13.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss 1. Using trackyBy with ngFor directive 2. How to get the index of an item in a collection 3. Identifying the first and the last elements in a collection 4. Identifying even and odd elements in a collection Using trackyBy with ngFor directive : ngFor directive may perform poorly with large lists A small change to the list like, adding a new item or removing an existing item may trigger a cascade of DOM manipulations For example, consider this code in employeeList.component.ts The constructor() initialises the employees property with 4 employee objects getEmployees() method returns another list of 5 employee objects (The 4 existing employees plus a new employee object) Now look at this code in employeeList.component.html [table] [thead] [tr] [/tr] [/thead] [tbody] [tr *ngFor='let employee of employees'] [/tr] [tr *ngIf="!employees || employees.length==0"] [td colspan="5"] No employees to display [/td] [/tr] [/tbody] [/table] [br /] [button (click)='getEmployees()']Refresh Employees[/button] 1. At the moment we are not using trackBy with ngFor directive 2. When the page initially loads we see the 4 employees 3. When we click "Refresh Employees" button we see the fifth employee as well 4. It looks like it just added the additional row for the fifth employee. That's not true, it effectively teared down all the [tr] and [td] elements of all the employees and recreated them. 5. To prove this launch browser developer tools by pressing F12. 6. Click on the "Elements" tab and expand the [table] and then [tbody] elements 7. At this point click the "Refresh Emplyees" button and you will notice all the [tr] elements are briefly highlighted indicating they are teared down and recreated. This happens because Angular by defualt keeps track of objects using the object references. When we click the "Refresh Employees" button we get different object references and as a result Angular has no choice but to tear down all the old DOM elements and insert the new DOM elements. Angular can avoid this churn with trackBy. The trackBy function takes the index and the current item as arguments and returns the unique identifier by which that item should be tracked. In our case we are tracking by Employee code. Add this method to employeeList.component.ts. trackByEmpCode(index: number, employee: any): string { return employee.code; } Make the following change in employeeList.component.html : Notice along with ngFor we also specified trackBy [tr *ngFor='let employee of employees; trackBy:trackByEmpCode'] At this point, run the application and lauch developer tools. When you click "Refresh Employees" first time, only the the row of the fifth employee is highlighted indicating only that[tr] element is added. On subsequent clicks, nothing is highlighted meaning none of the [tr] elements are teared down or added as the employees collection has not changed. Even now we get different object references when we click "Refresh Employees" button, but as Angular is now tracking employee objects using the employee code instead of object references, the respective DOM elements are not affected. How to get the index of an item in a collection : In the example below, we are using the index property of the NgFor directive to store the index in a template input variable "i". The variable is then used in the [td] element where we want to display the index. We used the let keyword to create the template input variable "i". The index of an element is extremely useful when creating the HTML elements dynamically. We will discuss creating HTML elements dynamically in our upcoming videos. [tr *ngFor='let employee of employees; let i=index'] Identifying the first and the last element in a collection : Use the first and last properties of the ngFor directive to find if an element is the first or last element respectively. Identifying even and odd element in a collection : This is similar to identifying first and last element in a collection. Instead of using first and last properties, use even and odd properties.
Views: 66949 kudvenkat
AngularJS dersleri (ders 3) -  scope / ng-class /ng-if / ng-show / ng-hide .....
 
14:03
Bu dersde $scope-a object list , funksya verilmesi , extend meselesi , bezi directivleri gorecik ...
Views: 305 Horumcek Toru
Displaying angular form validation error messages
 
10:00
In this video we will discuss 1. How to display validation error messages to the user 2. Style the error messages using Bootstrap 3. How to disable Submit button if the form is not valid Text version of the video http://csharp-video-tutorials.blogspot.com/2018/01/displaying-angular-form-validation.html Slides http://csharp-video-tutorials.blogspot.com/2018/01/displaying-angular-form-validation_31.html Angular CRUD Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 19328 kudvenkat
ionic2 ngif ngfor
 
18:53
ionic2 : ngif, ngfor, switchcase
Views: 300 SUKRIT JAIDEE
AngularJS Tutorial - Part 3
 
01:15:01
This is the AngularJS tutorial. This covers the below listed built-in directives. ng-if It is used to remove or recreate an element in the DOM depending on an expression ng-switch It is used to conditionally switch control based on matching expression. ng-model It is used to bind an input,select, textarea etc elements with model property. ng-readonly It is used to set readonly attribute to an element. ng-repeat It is used to loop through each item in collection to create a new template. ng-selected It is used to set selected option in select element. ng-show/ng-hide It workes based on expression, if true then the element is shown or hidden respectively. ng-src It is used to dynamically bind AngularJS variables to the src attribute. ng-submit It is used to bind angular expressions to onsubmit events. ng-value It is used to bind angular expressions to the value of option. ng-required It is used to bind angular expressions to onsubmit events. ng-style It is used to set CSS style on an HTML element conditionally. ng-pattern It is used to add the pattern validator to ngModel. ng-maxlength It is used to adds the maxlength validator to ngModel. ng-minlength It is used to adds the minlength validator to ngModel. ng-classeven It works in conjunction with ngRepeat and take effect only on odd (even) rows. ng-classodd It works in conjunction with ngRepeat and take effect only on odd (even) rows. ng-cut It is used to specify custom behavior on cut event. ng-copy It is used to specify custom behavior on copy event. ng-paste It is used to specify custom behavior on paste event. ng-options It is used to dynamically generate a list of option elements for the select element. ng-list It is used to convert string into list based on specified delimiter. ng-open It is used to set the open attribute on the element, if the expression inside ngOpen is truthy. The demo source code is available in below GitHub https://github.com/sunrisetechdoc/AngularJS Email ID: [email protected]
#10 Curso de Angular / Fundamentos - Directiva ngIf / Else
 
02:58
Bienvenidos a un nuevo video tutorial de fundamentos de Angular, ahora veremos un complementario a la directiva "ngIf" y será "else". Documentación utilizada: https://angular.io/api/common/NgIf Descarga los archivos del curso aquí: https://goo.gl/Bacc3P Curso de Bootstrap 4 PREMIUM! El valor del curso es de $199 dólares pero podrás acceder por tan solo $15 dólares aquí: https://goo.gl/NeCmze Espero contar con tu apoyo, ya que estos canales de ingresos me ayudan a que pueda seguir subiendo contenido a mi canal de Youtube! GRACIAS GRACIAS GRACIAS GRACIAS!! :) ¿Necesitas crear formularios de contacto con PHP? Ingresa a mi curso PREMIUM a solo $15 dólares aquí: https://goo.gl/K2SKWZ No olvides suscribirte a este hermoso canal y destruirme en los comentarios :) También puedes seguirme en Facebook: https://www.facebook.com/bluuweb/ Finalmente visita mi sitio web: http://ignaciogutierrez.cl Música: http://www.bensound.com/
Views: 3888 Bluuweb !
Learn Angular 2 in 21 Days: Day 5 ngFor, ngIf, Pipes and Avatars
 
08:48
In today's episode, we finally implement a nice looking timeline! The source code for the examples can be found on my blog at: http://blogs.bytecode.com.au/glen/2016/08/23/ng-day5-timeline.html Here's some cool resources to checkout from today's show: * [That Comment Layout](http://semantic-ui.com/views/comment.html) from Semantic UI * [Free Icons for Twitter Templates](http://uifaces.com/authorized) You can always grab tagged source code on the [GitHub repo](https://github.com/glenasmith/twit-ng) which will be tagged day1, day2, etc.
Views: 2364 Fresh Bytecode
Angular 5 - Add Bootstrap in Angular
 
09:54
Bootstrap is the most popular HTML and CSS framework for building responsive layouts without having a deep knowledge of CSS. So in this session, we will learn how we can add Bootstrap in Angular There are 2 approach to use bootstrap in Angular 1) CDN : Content Delivery Network 2) Download bootstrap using npm 1st Approach using CDN : In case of CDN we will copy the url for bootstrap and paste that url in index.html file We will have one bootstrap.min.css and 3 scripts file: 1) jquery 2)popper.js 3) bootstrap.js Bootstrap 4 is the latest version of bootstrap which have dependency on 2 libraires and that is jquery and popper.js jquery is a library of javascript and popper js is also a javascript library that helps you in positioning your HTML elements very quicky specially when you have something like notification 2nd approach of using bootstrap : we can download all these libraries using npm command 1) npm install jquery popper.js 2) npm install [email protected] Once dependencies get installed it will save these dependencies in node_modules folder Now we can't link these path in index.html. If you want to set any global CSS or JS you need to give the path in angular-cli.json file there we have one styles key there we have to give the path of bootstrap.min.css Now we "styles": [ "../node_modules/bootstrap/dist/css/bootstrap.min.css", "styles.css" ] and in scripts key refer jquery, popper and bootstrap.js "scripts": [ "../node_modules/jquery/dist/jquery.min.js", "../node_modules/popper.js/dist/umd/popper.js", "../node_modules/bootstrap/dist/js/bootstrap.min.js" ] If you make any changes in angularcli.json file we need to restart angular server to make it work. Press Ctrl+C(to stop current running server) and start the server using ng serve -o command and you can see it is working If you liked my channel , subscribe to it and like my videos. For any queries ask you question in comment section you can also connect with me @ Facebook: https://www.facebook.com/AngularJS4Beginners LinkedIn: https://www.linkedin.com/in/nisha-singla-82407aa0/ Website : http://nishasingla.com/
Views: 1747 Nisha Singla
Angular 2: Structural Directives, ngIf, ngFor
 
04:09
A structural directive is designed to alter the DOM layout by adding or removing DOM elements. In this video, you will learn how to use the inbuilt ngIf and ngFor structural directives.
Views: 795 GeekHours
Angular template vs templateurl
 
06:34
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/06/angular-template-vs-templateurl.html Slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-template-vs-templateurl_6.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss template and templateurl properties of the Component decorator. In Part 4, we have used an inline view template. Notice the code we have implemented in app.component.ts file. We have embedded the view template inline in the .ts file. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: `[h1]Hello {{name }}[/h1]` }) export class AppComponent { name: string = 'Angular'; } The view template is inline in a pair of backtick characters. The first question that comes to our mind is can't we include the HTML in a pair of single or double quotes. The answer is "YES" we can as long as the HTML is in a single line. So this means the above code can be rewritten using a pair of single quotes as shown below. template: '[h1]Hello {{name }}[/h1]' We can also replace the pair of single quotes with a pair of double quotes as shown below, and the application still continues to work exactly the same way as before. template: "[h1]Hello {{name }}[/h1]" The obvious next question that comes to our mind is when should we use backticks instead of single or doublequotes If you have the HTML in more than one line, then you have to use backticks instead of single or double quotes as shown below. If you use single or double quotes instead of backticks you will get an error. template: `[h1] Hello {{name }} [/h1]` Instead of using an inline view template, you can have it in a separate HTML file. Here are the steps to have the view template in a separate HTML file Step 1 : Right click on the "app" folder and add a new HTML file. Name it "app.component.html". Step 2 : Include the following HTML in "app.component.html" [h1] Hello {{name}} [/h1] Step 3 : In "app.component.ts", reference the external view template using templateUrl property as shown below. Notice instead of the "template" property we are using "templateUrl" property. Please note that templateUrl path is relative to index.html import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: 'app/app.component.html' }) export class AppComponent { name: string = "Angular"; } What are the differences between template and templateUrl properties and when to use one over the other Angular2 recommends to extract templates into a separate file, if the view template is longer than 3 lines. Let's understand why is it better to extract a view template into a seprate file, if it is longer than 3 lines. With an inline template 1. We loose Visual Studio editor intellisense, code-completion and formatting features. 2. TypeScript code is not easier to read and understand when it is mixed with the inline template HTML. With an external view template 1. We have Visual Studio editor intellisense, code-completion and formatting features and 2. Not only the code in "app.component.ts" is clean, it is also easier to read and understand
Views: 131215 kudvenkat

Sample cover letter for mortgage application
Investment banking cover letter sample analyst interview
Vthumb application letters
Jmu admissions essay
Cover letter for foreman position