Questions tagged as 'angularjs'

2
answers

Sum of values in Array returns NaN

I have an array of requests, plus one of them contains an additional value. I made the sum with $ watchCollection, plus it is returning NaN result. How do you add these values when the object does not have the additional value. .controller('My...
asked by 14.03.2016 / 19:02
2
answers

How to pass an array that is in the controller to a directive

I have a directive where I am putting graphics, but I can not understand how I can pass Array from controller to this directive or how can I get that Array using $ http within the directive. This is the directive: .dire...
asked by 03.03.2016 / 14:00
2
answers

OrderBy with accents

I'm trying to sort out a map with some data, but I can not sort words with accents. They always come last, I need a suggestion to get a map sorted. Follow the code: (function(angular) { 'use strict'; angular.module('orderByExample...
asked by 15.10.2015 / 21:21
1
answer

How to return the value of a select to an ng-repeat in the angle

I have a select that has 3 options 1,2 and 4, I need to choose one of these numbers if a div is repeated 1, 2 or 4 times according to the selected selection, how do I do this with Angular? >     
asked by 08.08.2017 / 14:06
1
answer

Validation of CNPJ in Javascript

I have a simple question. I want to validate the cnpj of an institution register. In this input is already placed the mask, in which the mask is in js. But I can not validate this field. I took a famous example of the net, but it is not working...
asked by 31.05.2016 / 20:01
1
answer

Access more specific data of an object

I made a GET in a table in my database $scope.corretor = {}; $scope.getData = function (){ $http.get("http://.php") .success(function(data){ $scope.corretor = data; console.log($scope.corretor); }) .er...
asked by 12.08.2015 / 07:42
1
answer

AngularJS consume RESTful in different domains

Good afternoon, I'm trying to make a client that indexes the information of several webservices (about bitcoin quotes from several brokers), but when trying to access the webservice the imported json values are not displayed, and pressing F12 in...
asked by 09.12.2015 / 17:30
3
answers

How to install Angular JS modules? [closed]

I'm creating an application in spring + angular, and for reasons I can not install the angular modules in the project folder by the command bower install ... how can I install these modules manually and how do I use it?     
asked by 08.09.2015 / 13:41
4
answers

service returning result of a $ http

I'm creating a service for an AngularJS application where I should query a ws and return a value for a variable. My problem is that when I use $http I can not get this value to return, if I use a console.log() ... I do this: ap...
asked by 02.06.2015 / 21:02
1
answer

Creating dynamic ng-model with angular

I need to create the name of a model dynamically, but at the time of creating the angle obj does not accept that I try to create the obj name dynamically. Has anyone done this or do you know how to proceed?    The problem is occurring in the...
asked by 02.04.2015 / 14:33