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 the controller to display all the fruit name in the browser".Below code shows the HTML markup used for displaying fruit name as a ordered list.<!DOCTYPE html>
<html...
 •  0 comments  •  flag
Share on Twitter
Published on September 05, 2014 11:25
No comments have been added yet.