Created
August 8, 2015 12:32
-
-
Save agrajm/6279a92f3d41bc6bbcbf to your computer and use it in GitHub Desktop.
Example of a Standard Angular Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module("dependencyinjection", []); | |
app.controller('mainController', function($scope){ | |
$scope.users = [{ | |
name : "Tom", | |
age: 29 | |
},{ | |
name : "Harry", | |
age: 28 | |
}]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment