Questions tagged as 'angularjs'

1
answer

Force angle to reanalyze ngClass when the width of the screen changes

I'm building an application where I depend on ngClass to change the class of elements. The problem is that I can not get ngClass to interpret a change in screen width (concept of responsiveness). I know I can do this by using $scope.$watch...
asked by 06.08.2016 / 04:03
1
answer

Is there any problem in inserting a controller from another in angularjs?

I have the following question: I'm setting up a page, where I have a controller called PageController , responsible for rendering the menu and title of the page. However, within div where I use ng-controller="PageController"...
asked by 06.08.2016 / 18:19
1
answer

Doubt modifying HTML tags with AngularJS

Someone could tell me how I can change an html tag with angular, like I would add a ng-model tag and from that I could change tag properties like class, id, text, etc ...     
asked by 28.01.2015 / 02:35
3
answers

Adding data from the array

I have an array that the data comes from the user's filled form and I make a map: dados.map(element=> { var x var number1 = parseInt(element.preco), number2 = parseInt(element.peso) var tota = number1 * number2...
asked by 19.10.2018 / 15:54
3
answers

Get function in service.js returns null

I have a Json of categories with an array of products inside it. Search all categories and all products according to category, you are looking for. Now the problem is that I want to return the detail of the product by product id, but in the cons...
asked by 02.03.2016 / 17:51
1
answer

Format monetary value with AngularJS

I'm getting the following values <h3 id="valor">Valor Mensalidade: R${{curso_se.preco_curso}}</h3> <h1 style="color:green;">PrimeiraMensalidade:R${{curso_se.preco_matricula}}</h1> But they are coming with dot...
asked by 20.12.2017 / 18:23
4
answers

Check index in array of objects by property

When I click on an element, I get an id. With this I go into an array and find out which object has the same id, and I need to remove all objects with the same id. function onRemove(city) { for (var i = 0; i < array.length; i++) {...
asked by 10.04.2018 / 13:49
1
answer

Why can not I get the form data?

Something very strange is happening, the first time this happens. I have a registration form. When I click save, the console appears 'undefined' and it aligns ... Impossible to be 'undefined' because there are data filled !!! See below: HTML...
asked by 20.07.2017 / 20:31
1
answer

Progress bar in angulajs

I need a% w / o% to be the image of a chalice being filled with progress-bar . Something like this: link . Can anybody help you? I still do not have the official image, but it would look something like this: When you open a page, th...
asked by 30.01.2017 / 18:56
1
answer

How to get object in php

Good evening guys, I'm trying to pass parameters from my controller to php that does search in the database and I'm not getting it. I'm passing the data as json object. controller: var buscaCategorias = function(){ var idempresa = $...
asked by 13.12.2016 / 23:56