AngularJS Tutorial 23 - Custom Directives

preview_player
Показать описание
In this session, we will be talking about Custom Directives in angularJS.

Directives are the markup on the DOM that allows you to attach some extra behavior on DOM

First we will discuss about why we need Custom Directives?
When html was first created it was never intended to use it the way we are using it today.

It was used to represent your static data but as the need of dynamic data increased we want Dynamic document.As our needs grew we start streching HTML to do more and more.

As our needs evolved, we found HTML more like a programming language rather than just a markup for creating static documents and you can see this in case of Web Components

Web Components is a adapt proposal of current W3C specifications and it allows you to create your own custom HTML elements with embedded functionality

So angular gives you this functionality of creating these web components with the help of Directives

Syntax

return {

}
});

Kindly click on this click if you want to learn about Directives

Connect with me on my Facebook page

Рекомендации по теме
Комментарии
Автор

Madam how to create custom filter and how filter data by ckicking a button then respective data will be populated...

rameshrathod
Автор

Hello Nisha u have done a awesome job ...very keen difficulty in ng-pattern [ ng-pattern="/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2, 3}$/"] not able to decode this properly and more on custom filters plz . thanks a lot for videos very hepfull

sirsiveeresh