Questions tagged as 'angularjs'

2
answers

Sorting items with angle

I'm working on a system that requires paging of data, but first I'd like to sort the json I get in the order of user names. JSON is in the format: [["22","Aiolinhos","23","[email protected]","Administradores","SIM"],["20","Aiorinhos","...
asked by 13.04.2017 / 19:06
1
answer

JSON array with checkbox AngularJS

I'm trying to form a JSON with what is selected by checkbox , but when I select it it inserts, but when I try to get check , it reinserts. The correct would work this way , but forming a array of JSON and not just words or numbers....
asked by 10.12.2015 / 19:36
1
answer

How to be notified when there are changes in the grid - AngulasJs ui-grid

Is there any way to know if the grid has finished updating lines, or even if it has finished loading them? I tried to do it this way: $scope.gridApi.core.on.filterChanged($scope, function() { console.log('filter changed'); $timeout(...
asked by 16.12.2015 / 12:30
2
answers

Angular - delete $ scope.categoria_nova;

My delete does not work when registering a new category: The form does not clear the fields, what can it be? JS: app.controller('categoriasCtrl', function ($scope, $http) { $scope.categorias = [ {id: 10, nome: 'Categoria teste 2', at...
asked by 03.12.2015 / 14:40
1
answer

How to change the value of the variable in Factory?

Inside Factory has a variable countF with value 1: Factory app.factory('testFactory', function(){ var countF = 1; return { getCount : function () { return countF; }, incrementCount:functio...
asked by 20.10.2015 / 18:51
2
answers

Responsive side menu with button

I have a side menu: Iwouldliketoputabuttontohideandshowthismenu,andthatwhenIdecreasetheresolutionappearsthisbuttonsothatIcandisplayit.HTML:<divid="wrapper"> <!-- Sidebar --> <div id="sidebar-wrapper"> <ul class=...
asked by 02.10.2015 / 19:24
1
answer

Object Not Defined

I'm having trouble with an object in Node.Js with Express.Js. It is reporting the following error. Error: Route.get() requires callback functions but got a [object Undefined] at C:\contatooh\node_modules\express\lib\router\route.js:162:...
asked by 29.09.2015 / 05:51
1
answer

How to preserve the cache of an iframe?

When changing an angle route, I would like to preserve the cache of an iframe that has been read and rendered: $scope.loading_guten_pro = false; $scope.url_pro = '/acesso-pro'; $scope.iframePro = function() { $scope.loading_guten_pro = t...
asked by 29.10.2018 / 13:56
1
answer

Problems $ scope mdDialog angularjs

Good morning guys! I'm having trouble passing an array to an md-dialog. Clicking on an edit button sends the array that is in the $ scope via locals to the md-dialog's controller so that I can change the data and save it. But the problem i...
asked by 04.02.2016 / 14:44
1
answer

Value attribute of options in select are not set correctly

I need to loop through a select element on a HTML page by putting the option elements inside it. The problem is that in the attribute value of these option should receive the identifiers coming from the databas...
asked by 02.02.2016 / 18:41