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 method is exposed and the other directive call this expo...
Published on November 10, 2014 10:37