I just now started learning on AngularJS from w3schools. I am trying to practice examples what ever they have mentioned in the tutorials. Every thing works fine but when i c
You have to input function as a parameter inside module
var app = angular.module('app',[]); app.controller('personController',function($scope){ $scope.firstName = 'John'; $scope.lastName = 'Smith'; });