Skip to content

Instantly share code, notes, and snippets.

@asicfr
Created May 6, 2013 12:04
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 asicfr/5524741 to your computer and use it in GitHub Desktop.
Save asicfr/5524741 to your computer and use it in GitHub Desktop.
var app = angular.module('myApp', []);
app.controller('MainCtrl', ['$scope', 'myService', function ($scope, myService) {
console.log('online');
$scope.data = myService.outData;
$scope.showData = function () {
myService.showData();
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment