Questions tagged as 'angularjs'

4
answers

Search within an Array to print match value

I have an array of users and I want to print in an html only the one with the email: "[email protected]", how can I do that search within the array. var user = [ { "id": 1, "name": "Leanne Graham", "username": "Bret", "email"...
asked by 17.03.2018 / 21:42
1
answer

The value of variable is deleted when passing it from js to php

I'm doing a shipment by ajax from js to php. I am sending an array of objects using angular, here my code. $scope.updateRecipe = function() { //Se hace petición ajax para agregar el producto $http( { //Se elige el metodo...
asked by 19.01.2018 / 23:35
2
answers

Subtract percentage in real time in an HTML with JavaScript, or by calling a PHP

It is to make a simple form where we put the data of a monthly expense in number. The idea is that when doing click in calculating savings show you again your spending and the% saving 8% . I need to know if with AngularJs or with php...
asked by 02.12.2017 / 00:11
1
answer

Show correct status with ng-click

I am trying to do a función that I call doing ng-click , where I want to show the status corresponding to the ítem that I give click , that is, if I give click to the object banana that only me show the st...
asked by 04.10.2017 / 16:05
2
answers

Access a data inside a json object (no array)

I'm working with angularjs, I have a query to bring me a user by document number, I return a json with the data, what I need is to access the data idUsuario of that json object to inject it elsewhere, to give a console.log in the variable to whi...
asked by 28.08.2017 / 21:04
2
answers

duScroll does not work correctly AngularJS

I'm using a tool that offers us an angle that is Angular-scroll where I have a function that executes a scroll up, but I have not tried to get it, please some solution? <script src="https://ajax.googleapis.com/ajax/libs/angular...
asked by 26.09.2017 / 15:05
1
answer

Problem with POST requests inside a FOR loop in angularjs [closed]

I'm starting on Angularjs and Javascript and I'm having trouble with requests to a REST API. This is my function: $scope.exportERP=function(){ // En primer lugar insertamos los artículos. var artUrl = urlERP + "art_m" + apiKey...
asked by 08.08.2017 / 13:21
1
answer

Barcode PDF417

Good morning community, I have a small question regarding a reader that I am using in my project to recognize identity documents.    PDF417 is one of the bar codes that can be used to   print the postage accepted by the Postal Service of t...
asked by 14.08.2017 / 18:51
1
answer

Use variables like $ scope or $ timeout in the constructor in Ionic

I am new to Ionic and I am trying to use the background plugin, I have the following simple and functional my application builder: import { Component } from '@angular/core'; import { Platform } from 'ionic-angular'; import { StatusBar } from...
asked by 16.08.2017 / 21:08
2
answers

how to get only the day of the current date in angularjs

How could I get the day of my current date, so I get my current date: $scope.CurrentDate = new Date(); But the day how do I get it?     
asked by 22.06.2017 / 19:49