×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Mohammad Amir
Added: Jan 3, 2017 11:06 AM
Views: 9
Tags: angular api rest
Typical angularjs app
  1. var app = angular.module('osp', []);
  2. app.controller('LoginCtrl', ['$scope', 'Login', function ($scope, Login) {
  3.     Login.get({}, function (token) {
  4.         $scope.token = token;
  5.     });
  6. }]);
  7.  
  8.