Questions tagged as 'angularjs'

2
answers

How to sum all the elements of an ng-repeat? [duplicate]

Example: I have a ng-repeat any, which repeats each a number. How do I store a variable that is equal to the sum of this number of each repeat? Angular CodeJS: ngular.module('meumodulo', []) .controller('mercadoria', function($root...
asked by 27.09.2017 / 13:44
1
answer

Object with list of objects inside JavaScript

I'm using angular to make a form that contains multiple checkboxes (using angular-material), this form sends the values to the controler, which are received as follows: Ineedtogetthisdata(allobjectscontainthesamefields)andturnitintoaJSON.Doesan...
asked by 29.09.2016 / 22:00
3
answers

How to implement spinner loanding in AngularJS?

I'm trying to implement spinner loanding on my project at angularjs, it's been a while! the spinner should run whenever a request is executed. What library do I use?     
asked by 24.08.2015 / 22:30
1
answer

How to solve the conflict between AngularJS and Django?

What is the most efficient way to solve the conflict problem between Django and AngularJS when using {{ }} in templates?     
asked by 19.03.2015 / 02:41
1
answer

How to pick up / drop object in localstorage?

I'm sending a JSON object to localStorage : window.localStorage.setItem('tarefa',aux); And I try to get this object on another controller like this: $scope.tarefa=window.localStorage.getItem('tarefa') However, when displaying on...
asked by 21.03.2017 / 14:49
3
answers

Pass directive within template

I have the following scenario: I have a modal call directive and I want to pass another policy as content, the code is as follows: maintain-provider-form.js "use strict"; angular.module("fornecedor") .directive('manterFornecedorFormulario'...
asked by 27.10.2015 / 15:05
1
answer

Error importing Dynamic Json via AngularJs

Hello, I'm having trouble importing this Json and others, I do not know what I might be doing wrong in this ... <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></...
asked by 10.07.2015 / 14:36
3
answers

jquery function does not work with routeprovider angularjs

I'm doing a web application with AngularJS and made this routeprovider to single page angular.module("app").config(function($routeProvider){ $routeProvider.when("/Proposta", { templateUrl:"Proposta.html", controller :"ClienteCo...
asked by 03.08.2015 / 05:12
2
answers

Would it be possible to save session user data in SessionStorage?

Is saving user data in SessionStorage a good option? For example, the user enters the login and password I authenticate in back-end and return the entire object, then store that user in SessionStorage . I'm a bit afraid to...
asked by 23.02.2016 / 15:45
1
answer

Difference between scope statement

Is there any difference in this scope statement mentioned in the angular documentation: myApp.controller('DoubleController', ['$scope', function($scope) { $scope.double = function(value) { return value * 2; }; }]); for this scope? myApp...
asked by 21.05.2015 / 15:20