Skip to content

Instantly share code, notes, and snippets.

@xaiwant
Created January 31, 2018 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xaiwant/99e46b89c457eb1e73971398eccb9d73 to your computer and use it in GitHub Desktop.
Save xaiwant/99e46b89c457eb1e73971398eccb9d73 to your computer and use it in GitHub Desktop.
var NewApp = angular.module("NewApp,[]");
var NewController = function ($scope) {
$scope.ValueA = "100 INR";
}
var newApp.controller("NewController",NewController);
/* Alternate way to write controller */
var NewApp = angular.module("NewApp,[]");
var newApp.controller("NewController", function ($scope) {
$scope.ValueA = "100 INR";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment