Posts by LucasMoura • 138 points
4 posts
-
1
votes2
answers83
viewsQ: Redeem http service result in another function
controllerPrincipalService.getResultado(id).then(function(dados) { // limpando o retorno var p = data.search("{")-1; var res = data.substring(76); var f = res.search('<'); dados =…
-
0
votes2
answers3665
viewsA: Variable global angular problem
Another doubt Marcio.. controllerPrincipalService.getResultado(id).then(function(dados) { // limpando o retorno var p = data.search("{")-1; var res = data.substring(76); var f = res.search('<');…
-
0
votes2
answers3665
viewsQ: Variable global angular problem
app.controller('controllerPrincipal', function($scope, $http){ var resultado; $http({method: 'GET', params: {id: 2}, url: 'url'}).success(function(data) { // limpando o retorno var p =…
-
10
votes3
answers16195
viewsA: How to replace src of an img tag?
Do it with javascript, put an id or class to identify, search with javascript, and change the property var img = document.getElementById('teste'); img.src = 'teste'; sorry... for you to get the date…