Questions tagged as 'angularjs'

1
answer

Return function Angularjs / Javascript

How do I retrieve the value of this function using this way: var teste = getUser(); function getUser() { userService.getUser(userService.getUserLogged().id).success( function(res) { return res.data; } ); }...
asked by 08.12.2015 / 12:29
1
answer

Save access token

I am designing a simple login architecture and am in doubt of where to save the user access token. The system will be developed in SPA using AngularJS and the server will be a REST API not yet defined. When the user logs on to the system, he...
asked by 06.02.2016 / 21:47
1
answer

Data Binding Does Not Work After Calling Function

I have the following function: $scope.calcularTotal = function(startDate, endDate){ $scope.items = $filter('betweenDate')($scope.items, 'dataPagamento', startDate, endDate); console.log("testee: "+$scope.items) var total = 0; v...
asked by 03.11.2015 / 18:11
1
answer

Filter between two Ionic dates

I have a system where when entering a page a list is loaded with some data. But I would like to filter the data between two dates. Ex: fetch all records between 03/10/2015 and 03/11/2015 . How do I make this direct filter in J...
asked by 03.11.2015 / 12:30
2
answers

How to use ng-messages to show $ http errors?

I am able to use to perform invalid input validations, min characters and max characters, eg: <form name="myForm"> <div class="input-group"> <input type="text" class="form-control" name="cep" ng-model="cep" ng-minlength="...
asked by 15.04.2016 / 18:24
1
answer

Create directories and files in IOS using IONIC framework

I need to run a sort of CRUD in directories and files through an IOS application. This application uses the IONIC framework, which in turn uses Cordova and AngularJS features. The questions are: Regarding permissions, does the IOS syst...
asked by 16.04.2016 / 23:49
1
answer

ng-show / ng-hide does not update index-html, only view

I'm building an application that has an index.html and the views in separate files being rendered within the ng-view of the index. In this index I have a footer that I would like it to disappear when the user is forwarded to the home view aft...
asked by 06.11.2015 / 23:15
1
answer

Problem filtering municipalities by the selected district with ng-change in angularjs?

I have a mobile app where I have two select option (districts and counties). What I intend is that when choosing a district, only the counties that belong to that district appear. How can I do this? I already tried to filter by ng-c...
asked by 20.10.2015 / 18:34
1
answer

I need to modify the css of a radio button md-radio-button via jQuery

Colleagues, I'm trying to change the css of a md-radio-button via jQuery but I'm not getting it. <md-radio-button id="radio_letter" style="margin: 2px!important" ng-click="changeCorrectAlternative(command.key, alternati...
asked by 16.12.2015 / 20:17
1
answer

Formatted value with 1 decimal place in ngModel

I have the following object: dadosAnv = { horas_cel: 1950.0 } It turns out that when I edit this value, it appears in the input only 1950 . I would like to keep .0 of the value, however I have no idea how to format this value t...
asked by 15.02.2016 / 20:45