Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myApp = angular.module('myApp', ['restangular']);
- myApp.config(function (RestangularProvider) {
- var newBaseUrl = "";
- newBaseUrl = 'http://localhost:37103/api/'
- RestangularProvider.setBaseUrl(newBaseUrl);
- })
- myApp.controller("myCtrl", function ($scope, Restangular) {
- $scope.data = "Default Value"
- $scope.data = Restangular.one("employee").get();
- })
- 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