Skip to content

Instantly share code, notes, and snippets.

@niisar
Created February 8, 2016 14:25
Show Gist options
  • Select an option

  • Save niisar/a3563b719dd7a387c0f6 to your computer and use it in GitHub Desktop.

Select an option

Save niisar/a3563b719dd7a387c0f6 to your computer and use it in GitHub Desktop.
AngularJSAuthentication.WEB
define(['app'], function (app) {
app.controller("orderCtrl", function ($scope, $localStorage, $http, cnst) {
$scope.k2 = "i am signup";
$scope.orders = [];
$http.get(cnst.serviceBase + 'api/orders').then(function (result) {
$scope.orders = result.data;
});
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment