Blog

What are directives? How to create and use custom Directive in Angular js.

var app = angular.module(“myApp”, []); app.controller(‘AppController’, function($scope) { var users=[]; var user1={}; user1.firstName=”Satyam”; user1.lastName=”Kumar”; users.push(user1); var user2={}; user2.firstName=”Ravi”; user2.lastName=”Sankar”; user2.push(user2); […]