Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- insira o código aqui
- $http.get('data-json.php')
- .success(function(data) {
- deferred.resolve(data);
- })
- .error(function() {
- deferred.reject();
- });
- return deferred.promise;
- }
- }
- dataLoad.getContent().then(
- function(data) {
- //Objeto é impresso normalmente
- console.log(data);
- //nulo
- $scope.node = data;
- }
- );
- console.log($scope.node);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement