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
This is your corrected fiddle.
It is a good practice for angular that the controller definition must look something like this:
angular.module("app", []).controller("personController", function($scope) {
$scope.firstName = "John";
$scope.lastName = "Doe";
});
And, without doubt, the best tutorial ever for learning the basics of Angular is the CodeSchool one!
Hope this helps.