Angularjs 49
AngularJS Form Validation
AngularJS provides form validation using $invalid and $valid tag. These $invalid and $valid tags are Boolean in nature. In this Demo,"We will create button with 2 required input field. The submit button will be disabled and text color is red if form is invalid.Once the form is valid the submit button become active and color […]
Implementing AngularJS Anchor Scroll
AngularJS provides $anchorScroll method to to jump to a location with specified id. AngularJS provides $location object with hash() method to replace the current URL with a given key string. $anchorScroll reads the hashed string and looks for the given id and jump to the section. In this demo, "We will implement the anchor scroll […]
Understanding AngularJS Provider
AngularJS has the feature to create provider which act like a factory to provide data to the application. A provider can be defined using provider() function. A provider has to implement $get() method to be used. In this demo, "We will create a fruit name provider which will injected in application configuration and used by […]
Understanding AngularJS Directve Properties Detail
RESTRICT— This property controls the use of the custom directive. — A Directive in AngularJS can be used as Attribute, Element, Class,Comment.It can have the value of any combination of A|E|C|M. Example, restrict : “AC” designates the custom directive can only be used as an attribute or class. —The default value of restrict […]