Questions tagged as 'angularjs'

3
answers

Show values with angle

I have the following code: $http.get('/estados').success(function(retorno) { $scope.ufs = retorno.ufs; console.log(retorno); }); and the result of console.log(retorno) is: NowI'mtryingtoshowthevaluesofthisreturnina<sel...
asked by 02.04.2016 / 21:50
2
answers

Mask field Percentage and money using only number?

I have a html page made for mobile, I would like to put 2 types of masks being% Percentage and R $ Money but I need this field to be type="number" to show the numeric keypad of the cell phone . I already downloaded several masks and none could...
asked by 28.03.2016 / 23:19
1
answer

AngularJS Service http

I have a service in the angle and wanted to make a forEach to retrieve the value of the user, to authenticate the login My service: .service('usuariosService', function ($rootScope, $location,$http) { this.validaLogin = function(user){...
asked by 20.05.2016 / 01:05
1
answer

Save selected colors even by going to another page

Any idea how I can have 2 (options) arrays with styles to change the colors in specific places of the site (for example change 3 classes: .header, .footer, .sidebar), but keep the option in which the user clicked even when he went to another pag...
asked by 06.05.2016 / 21:54
1
answer

Show factorial result with AngularJS

I'm starting to learn with AngularJS. In a simple function, I need to do the factorial of a number using AngularJS, but I can not return the result on the screen (HTML page). Could someone help me? <!DOCTYPE html> <html ng-app=...
asked by 13.05.2016 / 04:34
1
answer

Dropdown already selected

I made a dropdown with AngularJs as follows <ui-select ng-model="SelectedItem.LegalEntity" theme="bootstrap" reset-search-input="false" style="width: 100%" id="legalEntityId" ng-d...
asked by 09.03.2016 / 15:51
1
answer

Uncaught ReferenceError: Ionic is not defined

I'm trying to make an "Android Push Notification" with ionic.io . I'm stuck on an error that I can not resolve:    "Uncaught ReferenceError: Ionic is not defined" I tried everything and could not solve. Can you generate this error?...
asked by 08.03.2016 / 17:16
1
answer

Message appears in modal and page at the same time

I created a "message center" in Angularjs that injects messages on the screen. The message always appears when an error occurs in the REST or success operations. This is done by an interceptor that checks whether the response has a message heade...
asked by 04.03.2016 / 13:05
2
answers

Send 2 Json objects for $ http in AngularJs

I am using C# / EF / Angular , in my backend I have the following method, which waits for 02 parameters: public dynamic save(Entidades.CheckList json, Entidades.CheckList json1) { master = new ClassMaster(); Entida...
asked by 16.06.2016 / 00:47
1
answer

Angular JS - $ http.delete "Syntax error on token '.' comma expected on Eclipse

Eclipse keeps telling the error on $ http.delete, when other methods (like $ http.put, $ http.post) are not. What could it be? For example, $ http.put: updateUser: function(user, id){ return $http.put('http://localhost:8090/Spr...
asked by 15.06.2016 / 20:20