AngularJS Require Attribute Directive Development
AngularJS provides $directive() method to create custom directive. directive() method takes no of initialization argument to build the directive component. There is one important attribute names 'require' through which a directive can call the API method if any exist in the parent directive. In this Demo,"We will create 2 directive.In one of the directive a […]
AngularJS Custom Filter
AngularJS provides $filter() method to creates custom filter. Filter can be used to the AngularJS expression.It is used as {{expression | filterName}}. In this demo,"We will create custom filter which will detect any vowel character if present inside a word". Below code shows a custom filter declaration and use inside a AngularJS expression.If a vowel […]
AngularJS $rootElement Example
AngularJS application module can be defined using ngApp directive. The element where the ngApp directive used is also known as root element.This element can be accessed using $rootElement object provided by AngularJS. In this Demo, […]
AngularJS Cookie Example
AngularJS framework provides cookie module ngCookies package.Also it provides cookieStore object with get(),put() and remove() method. The cookie feature is available in angular-cookies.min.js file. In this demo, "We will demonstrate cookie and cookieStore use in simple example". <!DOCTYPE html> <html […]