Browsing Tag

date time

First, create a script.js and add the following line of code: //script.js (function () { 'use strict'; var app = angular.module('myApp', ); //storing a string in Value app.value('appName', 'Angular JS'); //storing a function in Value app.value('users', { getAllUsers: function () { return ; } });…
Read More...

Value and Constant in Angular JS

First, create a script.js and add the following line of code: //script.js (function () { 'use strict'; var app = angular.module('myApp', ); //storing a string in Value app.value('appName', 'Angular JS'); //storing a function in Value…