init
This commit is contained in:
21
script.js
Normal file
21
script.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// Code goes here
|
||||
|
||||
(function(){
|
||||
var app = angular.module('awesome', []);
|
||||
|
||||
var mainController = function($scope){
|
||||
if(!$scope.username){
|
||||
|
||||
$scope.username = "defaults brah";
|
||||
}
|
||||
$scope.runMe = function(){
|
||||
alert($scope.username);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
app.controller('awesome', mainController);
|
||||
|
||||
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user