Questions tagged as 'angularjs'

3
answers

How can I change the CSS style sheet dynamically with AngularJS?

I'm having a problem with customizing a CSS, AngularJS does not allow me to write a snippet of code like this: <style> .btn-n { min-height: {{botao.altura}}px; min-width: {{botao.largura}}px; border-radius: {{...
asked by 16.11.2016 / 13:15
1
answer

Problems using $ state.go of angular

I have the following code: .controller('cadastroCtrl', ['$scope', '$stateParams', '$http', function ($scope, $stateParams, $http, $cordovaSQLite, $window, $state) { $scope.emailCli = []; $scope.emailPro = []; $scope.cadastrar = function(usua...
asked by 30.03.2017 / 23:11
2
answers

Sorting by date how long they are of type string

I'm developing an angularJS application which receives the following object from an API: pessoas = [ { nome: 'Lucas', data: '2010-Fev-04'}, { nome: 'Felipe', data: '1994-Dec-10'}, { nome: 'Ana', data: '1994-Jun-21'}, { nome: 'C...
asked by 13.07.2018 / 21:21
4
answers

How to sort an array dynamically with JS Angular?

I have a list of tasks. The list starts with uncompleted tasks (task.done == false) for first followed by completed tasks. However, when I select a task and hide it as completed (task.done == true), I would like the list to be dynamically ordere...
asked by 29.10.2015 / 18:03
2
answers

How do I edit the width of a class using angularjs?

I have an element with two classes: <div class="classe1 classe2"> </div> I want to increase the width of my class 2 style, what would be the right way to do it?     
asked by 04.08.2015 / 07:13
1
answer

How to format date for dd / mm / yyyy hh: mm format using JavaScript? [duplicate]

The date I have this looks like this:    "Fri Sep 22 2017 14:42:35 GMT-0300" I need to format it to the following format:    dd / mm / yyyy hh: mm How could I do this using JavaScript or Angular?     
asked by 22.09.2017 / 20:29
2
answers

How do I use a dynamic information coming from ng-repeat {{}} and use it as an argument to an ng-click (button) function?

I have a ng-click function: ng-click = "adicionar(0);" This function ng-click is inside the ng-repeat = "mercadoria in listademercadoria" loop. Is there a way to pass information according to repeat where it is contained...
asked by 22.09.2017 / 20:55
1
answer

Change the header background of only one ionic page

You have a ionic project and require that% of all pages have a different background than the rest of the application. Home (HTML) <ion-view view-title="Home"> <ion-content id="home" align="center" class="bg-home"> &l...
asked by 30.08.2016 / 22:45
2
answers

Controller and services logic with Angularjs

I have some doubts about the logic of the search functions of the controller and the service. Here is an example of service : angular.module("myApp").factory("ProjetosAPI", function ($http, config) { var _getProjetos = function (pagin...
asked by 08.12.2016 / 19:29
2
answers

What is the difference of angle forEach and the map function of javascript

I would like to know the difference between using angular.forEach and the map function of Javascript. ex: angular.forEach(meuArray, function(itens) {...}) meuArray.map(function(itens) {...});     
asked by 02.12.2016 / 14:52