Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save greenmoss/67b8b5017aba357c0b390fbe4409bb93 to your computer and use it in GitHub Desktop.
Save greenmoss/67b8b5017aba357c0b390fbe4409bb93 to your computer and use it in GitHub Desktop.
.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