Questions tagged as 'angularjs'

3
answers

Expression within ng-disabled

I have a problem with angle expression This does not work! ! checked2 <body ng-app=""> <label> Click me to toggle: <input type="checkbox" ng-model="checked"> &nbsp; <input type...
asked by 02.10.2017 / 16:22
3
answers

Pass value to service factory in angularjs

I need to pass two values (page and total) of $ scope that are in the controller to a service factory, how do I? Is there any good practice to do this? Service: angular.module("myapp").factory("AtividadesAPI", function ($http, config) {...
asked by 10.11.2016 / 20:07
2
answers

global variable angularjs

The question is simple, before the function I declare splited and within the function change splited to the value returned in response , now, after the function when I give console.log returns empty. Why? var splited...
asked by 23.03.2016 / 18:00
2
answers

How to load a value in select

$scope.init = function() { $scope.modelo = {}; $scope.marca = {}; $scope.modelo = {}; $scope.modelos = []; $scope.marcas = []; $scope.anos = []; $scope.precocarro=[]; $http.get('https://fipe-parallelum.rhcloud.com/api/v1/carros/marc...
asked by 25.02.2017 / 21:15
2
answers

How to display the sum of an X value where it has the same name?

Hello, let's say I have an object that has the following values var json = [ {"nome":"Coisa A", qtd:2}, {"nome":"Coisa A", qtd:3}, {"nome":"Coisa B", qtd:5}, {"nome":"Coisa B", qtd:7} ] Well, I can return these value...
asked by 25.07.2016 / 15:03
2
answers

Error page in AngularJS

Well, I'm new to AngularJS. I have a project, a single page with routes configured with a controller. Views are loaded within the element of the index.html page. Inside the controller I'm making an http call to get the data and data binding with...
asked by 09.05.2016 / 13:54
3
answers

How to pass an Object to another page using AngularJS?

I would like to know about manipulating objects between pages using AngularJS, for example: I have a product page, in it I make a requisition and I bring my data using the basic of AngularJS. My problem is when I need to pass a selected objec...
asked by 30.08.2014 / 03:26
2
answers

Display most important information from a JSON file

How do I display only some of the most important information in a list as in the example below? { "userId": 1, "id": 1, "title": "DRF - Delegacia de Roubos e Furtos", "endereco": "Praca Maua, 5 - Centro", "tel":"2233-2701",...
asked by 07.10.2015 / 04:01
4
answers

Validation of CNPJ with angularjs

I have already managed to make a mask, but I still can not validate whether this cnpj exists or not. What I have today is <input id="input-cnpj" name="cnpj" id="cnpj" ng-model="data.cnpj" type="tel" ui-mask="99.999.999/9999-99" ng-click...
asked by 09.02.2015 / 20:53
1
answer

How to use anchor in AngularJS?

I'm starting to work with AngularJS and I have the following situation I have a href that redirects to a div within the page itself by the div id: <a href="#teste"></a> <div id="teste"></div> But AngularJS tries to...
asked by 21.06.2018 / 22:20