Questions tagged as 'angularjs'

1
answer

Constant visible throughout the application

Hello, I'm developing the frontend for a API I've developed and I'm having a small problem, the URL of my API I'm setting in all the modules I use, to create a global constant for the application to set URL of the AP...
asked by 14.06.2016 / 12:55
3
answers

Pass Token by header to each request AngularJS

I'm implementing tokens on a system, I already have token generated and saved the same in sessionStorage . How can I create a service or interceptor to put this token in Header of each request? I currently do the services...
asked by 19.01.2016 / 17:37
1
answer

GET function in ng-click

I need to call a function GET through ng-click to populate a table and the function without using service works, but the function using service does not work. Controller: It works $scope.carregarContratos = function() { $http(...
asked by 18.11.2016 / 11:51
2
answers

$ Http What should I use?

The $http has two examples. I would like to help me because I do not know which is the most useful There is the: var chamada = function () { return $http.get('https:url/exemplo.json') .then(function (response) {...
asked by 25.02.2016 / 18:39
1
answer

How to update fields in AngularJS?

When inserting items into the list using the following code snippet: $scope.items.push({ codigo: $scope.s.codigo, ncm: $scope.s.ncm, descricao: $scope.s.descricao, preco: $scope.s...
asked by 02.01.2017 / 01:35
1
answer

How to use Angular input mask

I use AngularJs and Ionic and am trying to use this Input Mask , but I'm not sure how to do it. I follow the steps and even then this error appears: Angular Error . References in index.html: <script src="js/app.js"></script> &...
asked by 27.10.2015 / 18:48
2
answers

Check data according to the information ready

I would like to make this form check the following data by clicking "Confirm" and if any of them is correct it will go to the next page. MOCK: $scope.cliente = [{ nome: "nomeedit", senha: "senhaedit", email: "nomeedit@senh...
asked by 09.10.2015 / 17:10
1
answer

AngularJS + PHP: How should the data be consumed?

Beginning some readings on the AngularJS for a possible future project, I came to mind some doubts about client / server integration and consumption of the data provided by the server. How should this be done? Through REST , or is there an...
asked by 02.10.2015 / 15:43
1
answer

Returning JSON from a factory to a controller with angularjs

I'm starting to study angular deeper, and I'm having trouble processing JSON data in a factory and passing them to a controller. My idea is: A simple app, just for study, where I type the capital and it returns the state to me. Simple, right?...
asked by 09.09.2015 / 04:34
1
answer

Error displaying / hiding Div with Angular.js

I need to hide fields using Angular JS , after clicking a button will appear the label below: <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script><bodyng-app=""> <div>...
asked by 26.09.2016 / 16:30