Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.run(["$rootScope", "$http", "BASE_URL", "GetRecDelTrash",
- function($rootScope, $http, BASE_URL, GetRecDelTrash){
- // init linkNum
- $rootScope.linkNum = 1;
- $rootScope.items = [];
- console.log(BASE_URL + '/recently');
- GetRecDelTrash.getData().then(function(data) {
- $rootScope.items = data;
- $rootScope.$apply();
- });
- // why is rootScope.items undefined here?
- alert($rootScope.items);
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement