Questions tagged as 'angularjs'

1
answer

Validating whether or not there is a user with Firebase

I created a web registration, in Firebase. I can register, but if I soon with a valid email and password, I am not redirected into the system. And if I put an email and any password, it does not show the phrase "Invalid user or password" that I...
asked by 19.07.2017 / 19:50
1
answer

How do I redirect Exception to an error page?

How do I redirect UsernameNotFoundException to a page? if ( user == null ) { log.info( "Email " + email + " não é um ususário cadastrado." ); throw new UsernameNotFoundException( "Email " + email + " não é um ususário cadastrado." ); }...
asked by 31.07.2017 / 19:32
0
answers

AngularJS autocomplete visual studio code

I'm creating an API for angularjs and I know that in vs code you can write a d.ts file that defines the types and other things in the IDE. I already created this file index.d.ts for autocomplete and it worked for global variables and etc. Co...
asked by 31.07.2017 / 20:08
2
answers

infinite scroll with angled problem loading DB data

I'm trying to implement Infinite Scroll to my project and following some classes I found on the internet I came up with this code: <?php $query = "SELECT * FROM produtos ORDER BY id DESC"; $resultado = mysqli_query($conectar, $query); whi...
asked by 24.07.2017 / 17:38
1
answer

How do I get a splice () on an http.get using Ionic / Angularjs to search?

I want to filter according to what the user types on the screen. I have a form with ng-model="q" and | filter:q Where my http.get step is the parameters I'm filtering, where ng-model is the "find: $scope.pagination = {...
asked by 13.07.2017 / 20:12
0
answers

Policy does not work with dynamic properties

Oops, guys. I'm developing custom directives here, and they need to have flexibly added properties (like an ng-class). I was able to develop the mechanism to do this, however, I came across a bizarre problem: it adds the property but it does not...
asked by 25.07.2017 / 16:49
1
answer

How to search for words in a JSON using Ionic?

I have a JSON and it is paged. When he was not paginated, when he typed anything in the search, he would search for what was printed on the screen, as in the following example: <form ng-submit="fechaTeclado()"> <div class=...
asked by 09.07.2017 / 02:43
1
answer

How to create form editable using "Popover"

How do I change the code below to work with the% class of Angular-xeditable% Demo . var app = angular.module("app", ["xeditable"]) .run(function(editableOptions) { editableOptions.theme = 'bs3'; }) .controller('Ctrl', function($scop...
asked by 02.07.2017 / 21:53
2
answers

Default Value Dropdown AngularJS

In my project I have a dropdown, iterated from an array. Note that in the array I have a key called default that is set to true or false. I would like the dropdown defalt value to come with the key set to true. If I do this: $scope.nfe.nat...
asked by 02.07.2017 / 22:19
1
answer

Angular JS: $ http.get and $ routerParams

How to use routeParams in $ http.get so it returns only 1 object? I want to bring only the object that has the same ID passed in routeParams. <a href="funcionario/edit/{{funcionario.id}}" class="btn btn-primary btn-xs" ng-click="">...
asked by 30.06.2017 / 05:18