Guest User

Untitled

a guest
Dec 15th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. var myApp = angular.module('myApp', ['restangular']);
  2.  
  3. myApp.config(function (RestangularProvider) {
  4. var newBaseUrl = "";
  5.  
  6. newBaseUrl = 'http://localhost:37103/api/'
  7.  
  8. RestangularProvider.setBaseUrl(newBaseUrl);
  9. })
  10.  
  11. myApp.controller("myCtrl", function ($scope, Restangular) {
  12. $scope.data = "Default Value"
  13. $scope.data = Restangular.one("employee").get();
  14. })
  15.  
  16. angular.min.js:6 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=myApp&p1=Error%3A%2…0Bc%20(http%3A%2F%2Flocalhost%3A37103%2FSource%2Fangular.min.js%3A21%3A179)
Add Comment
Please, Sign In to add comment