Questions tagged as 'angularjs'

1
answer

Angular: Module name is not loaded in html ngApp tag

I'm doing a basic angled test that reads a simple json and displays on the screen. My problem is that when I put in the module name the module name in the ng-app tag all angular functions stop working. Inspecting the chrome code I found th...
asked by 29.06.2017 / 22:01
1
answer

Would it be interesting directives using http.get?

This is a html piece: <tr ng-repeat="projeto in projetos"> <td>{{projeto.name}}</td> <td>{{projeto.status}}</td> </tr> It uses a controller that does the following function $http.get('system/p...
asked by 22.04.2017 / 04:33
2
answers

How to pass a content from JSON Object to a controller - Part 2 - Using Parse.Query

Sorry about the same thing on the same topic, but now when I use a Parse.Query to get my data in service.js, I am not able to pass the JSON with content to the controller (app.js), below is a snippet of the codes . service.js var example = ang...
asked by 28.03.2017 / 17:19
2
answers

Accent error with xmlhttp.open (or in PHP) using AngujarJs / Ionic [duplicate]

I'm having problems with accentuation in sending form data to the database, it gets the wrong accent, type = No = No. How could you solve this problem? Here are my codes: My Controller: // ENVIAR DADOS $scope.confi...
asked by 25.03.2017 / 03:25
2
answers

AngularJS - request Do not pass parameter

My code is this, but in the php code I do not get the ref parameter ... What can it be? $http({ method: 'POST', url: '../assets/php/client/PHP.php', data: {ref: 'dataTableLoad'} }).then(function (re...
asked by 17.04.2017 / 03:41
2
answers

Listing information with select

I have already opened a question of this here and a user of the site helped me, and healed my doubts. However, when I try to use the code again that he introduced me, he is presenting errors. He introduced me the code with States, and I modified...
asked by 07.03.2017 / 14:23
1
answer

Problem installing AngularJs

I'm having trouble installing AngularJs, but I'm pretty sure what's wrong is the src path and where I put the angular files (in which folder). If possible, report; What angular files do I need? In which folder do I put the fil...
asked by 23.02.2017 / 01:23
1
answer

How to create javascript array object inside a FOR?

I need to pass an array object as follows, to api: [paulo = 1, gustavo = 2, amanda = 3,...] I have the following code: $scope.salvarHabilidades = function(pro){ var valores = pro.filter(function(o,i){ return o.habilidades ==...
asked by 24.05.2017 / 21:04
1
answer

Pass $ scope.variable to a javascript tagged in home

How to pass content within config to global variables: //meu config app.run(function(editableOptions, $rootScope, $filter) { editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default' $rootScope.$on('$rout...
asked by 15.03.2017 / 18:30
2
answers

How to get JSON data with Angular

I am studying angular and I am trying to receive JSON data from a webservice, but it has the following error:    XMLHttpRequest can not load    link . At the   'Access-Control-Allow-Origin' header is present on the requested   resource. Orig...
asked by 27.10.2016 / 20:03