Questions tagged as 'angularjs'

1
answer

How to get data from two inputs without using form?

I want to do something like in Excel. I have two inputs and in each I type values. When I press ENTER I want to capture the values entered, how can I do this? NOTE: I'm using Angular 1. <div class="descontoPromo"> <input class="fo...
asked by 26.03.2018 / 21:21
2
answers

How to make the angle recognize an ng-keyup event created dynamically in the element

I'm creating a directive that should dynamically include a function in the ng-keyup angular event, I tried to do this: Directive angular.module('app').directive('validar',validar); validar.$inject = []; function validar(){ var...
asked by 23.04.2018 / 20:26
1
answer

Get parameter of the url via angularJS

Well, I need to get a parameter from my url as soon as my page loads. localhost / 123456 The parameter would be: 123456 Using $ location, I got the url complete, but I can not get the parameter I need to load into my controller...
asked by 06.02.2018 / 05:46
3
answers

HTTP post in Angular

I'm trying to access a web service that gets in the Header "Device" and Body "User and Password", it returns me json in this format: { "IdUsuario": 2, "Usuario": "Fulanu", "Token": "1f7b87d7" } Trying to do this in angle, follow my c...
asked by 03.11.2016 / 22:57
1
answer

How to perform .filter between arrays / objects AngularJS Javascript

I have the following two objects in AngularJS: $scope.listaDoCarrinho = [0: { id: "55", setor: "alimento", foto: "Produtos/Produto (55).jpg", descr: "Espaguete Renata", de: 15, … }...
asked by 11.10.2017 / 21:44
2
answers

doubts with web printing

Personal in my project I use MVC, in the front end I use angular / html / js, etc. I need to print a report, what is the best way to do it? which tools to use? I tested it using this code: $scope.printReceita = function () { document.ge...
asked by 01.02.2018 / 10:50
1
answer

Doubts, API Restfull x Angular x CSRF

I'm developing an application, in the backend I'm developing a Restful in PHP, and in the front, Angular. I have a simple question about CSRF protection: Do I need to protect against CSRF? If yes, how can I make it fully stateless?     
asked by 10.11.2017 / 21:30
1
answer

How to get the ng-value of checkbox in AngularJS / Ionic

Imagine a traditional application in AngularJS <!DOCTYPE html> <html ng-app> <head> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script><title>...
asked by 29.08.2017 / 05:48
1
answer

Problem registering nested objects in Mongodb with mongoose

I have the following collection: // SUSPEITOS - INICIO // const suspeitosSchema = new mongoose.Schema({ nome: { type: String }, sexo: { type: String }, corPele: { type: String }, altura: { type: String }, peso: { type: String },...
asked by 09.11.2017 / 19:40
1
answer

Login Spring Boot + Spring Secutrity + Angular

What is the structure used for the combination Spring Boot, Spring Security and Angular Js to manage the login and the Spring application will be in rest. Will the login controller be in rest format too or will it be in the ModelAndView frame...
asked by 18.07.2017 / 21:40