Created
June 5, 2016 17:51
-
-
Save greenmoss/67b8b5017aba357c0b390fbe4409bb93 to your computer and use it in GitHub Desktop.
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
.controller('View1Ctrl', [ '$scope', '$log', '$http', function($scope, $log, $http) { | |
$log.debug('foobar'); | |
$scope.name = ''; | |
$scope.names = [{name:"Chris"}, {name:"Calvin"}]; | |
$scope.addName = function() { | |
$scope.names.push( {'name':$scope.name} ); | |
$scope.name = ''; | |
}; | |
var h = $http({ | |
method: 'GET', | |
url: 'https://google.com', | |
headers: {'Content-Type':'text/plain'} | |
}) | |
$log.debug(h) | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment