Questions tagged as 'angularjs'

1
answer

How to use $ interval and $ watch in angularjs

I have a function that makes a request to the server and it brings me data in JSON and I save in the variable numero any number: var numero $scope.Cola = function() { Ticket.Colaservices({ id_usuario: LoginData.get...
asked by 03.03.2017 / 19:39
2
answers

"Next" and "return" button in something similar to a form with Angularjs

Good morning. I need to know how I can use the "next" and "return" buttons on something similar to a form with html using angular js. Said "form" will be more like an online test, in which the user will click on "next" and "return" as he advance...
asked by 18.02.2017 / 18:19
3
answers

angularjs synchronous

I have the following driver.js: var result = []; var d = ["MS_SNA_CONTROL_TAB","MS_SNA_EXT_LOSS_TAB"]; for(var i = 0; i < d.length; i++){ var filter = {}; filter.name = d[i]; EOGService.query(queryP).then( function(a) {...
asked by 04.01.2017 / 14:23
1
answer

Problem with .then () in angularJS

I'm doing an AngularJS tutorial (the tutorial is more than a year old but it still works). I am in a lesson in which the get method is used to obtain the data of a JSON file. Of course, to handle the errors I use (or use in the tutorial)...
asked by 31.12.2016 / 06:30
2
answers

Filter by angularjs ng-repeat date

I have the following array : $scope.array = [ {'fecha': "2017-01-01", "texto": "luis"}, {'fecha': "2017-01-01", "texto": "jorge"}, {'fecha': "2017-01-01", "texto": "daniel"}, {'fecha': "2017-01-02", "texto...
asked by 06.01.2017 / 08:09
3
answers

Open new tab with AngularJs [closed]

I'm trying to visualize a PDF that returns an API. The code with which it worked so far is this: $http.get(urlApi,{responseType:'arraybuffer'}) .success(function(data) { var file = new Blob([data], {type: 'application/pdf'});...
asked by 09.03.2017 / 12:09
4
answers

Loadin angular rest

Suppose I have the following controller: test.controller App.controller('TestController', ['$scope', '$http', '$resource' , 'InitService', function($scope, $http, $resource, InitService) { $scope.createProduct = function(product) { Ini...
asked by 20.12.2016 / 16:43
2
answers

Undefined in php query

I do not know why, but it shows me the data correctly in one query and in the other I get the data Undefined ! Showing the following error when going through the for console.log($scope.servicio): process    Notice : Tryin...
asked by 08.11.2016 / 21:48
1
answer

Add input angular text

Suppose I have the following: <body data-ng-init="getTotal()"> <input type="number" ng-change="getTotal()" ng-model="factor.inputs[0]" ng-value="30"/> <input type="number" ng-change="getTotal()" ng-model="factor.inputs[1]" ng-va...
asked by 10.11.2016 / 12:31
1
answer

Angular problem ui.router when putting ui-view / ui-view in index.html

Good morning. I'm doing a web with NodeJs and AngularJs using bower for libraries, gulp for tasks, use ui.router to do the routes and I have in index.html a div ui-view tag that I try to make dynamic to change the content . But I get errors f...
asked by 29.12.2016 / 11:24