Questions tagged as 'angularjs'

1
answer

How to update $ scope.items using xeditable within form

In this example you can update the value of the field by clicking on the confirmation button, however on my form there is no button. What do I have to do to get this item / field updated? My form in JSFiddle: link HTML: <h4>Ang...
asked by 01.06.2017 / 02:30
0
answers

Making http post request to webservice

I'm doing a http request here for a webservice apsh , to make a request I do this: validaLogin(user: User) { var data = JSON.stringify({ email: user.email, senha: user.senha }); console.log(data); return this.http.po...
asked by 16.06.2017 / 18:52
1
answer

How to get the current browser URL with PHP?

For example, I have the following URL generated with ngRoute of AngularJS : https://www.projeto.com/edit/25 , 25 is the ID, I need to get this ID in PHP. In searches, I found the following solution to get the URL in PHP:...
asked by 31.05.2017 / 15:57
1
answer

Search with Ionic 3

I need to search ionic 3 but I can not. <ion-searchbar [(ngModel)]="searchTerm" (ionInput)="filterItems()" placeholder="Buscar Pedido" > </ion-searchbar> filterItems(){ this.evento.loadPedido(this.searchTerm...
asked by 01.06.2017 / 20:04
1
answer

Response to preflight request does not pass access control check: In 'Access-Control-Allow-Origin' header is present on the requested resource

I'm doing client / server testing where the client is being developed with angularjs and the java + tomcat + jersey server. When I try to make a client-side post, it gets to the server to the right place, but the answer is that it does not ar...
asked by 01.06.2017 / 19:59
1
answer

How to reduce the quality of images in upload using Cordova and Ionic 1?

Using the Cordova plugin: cordova-plugin-file cordova-plugin-file-transfer cordova-plugin-filepath cordova-plugin-camera cordova-plugin-actionsheet Together they use this code model: '// Present Actionsheet for switch beteen Camera / Libr...
asked by 26.05.2017 / 15:24
1
answer

AngularJS with md.data.table handler?

I have an app with AngularJS using Material Design and md.data.table in the latest version of each Framework (respectively 1.6.4, 1.1 .0 and 0.10.x). In the documentation for md.data.table you can verify that there is a callback function...
asked by 26.05.2017 / 21:03
1
answer

Using Angular "track by $ index" with pagination, filtering and sorting

Good morning! I'm having a bad problem when trying to use the Smart Table, with paging, filtering and searching in my table. I was with the table working when converting a JSON that consumed by an object request. In this case, I did: $sc...
asked by 05.06.2017 / 17:01
1
answer

Treat multidimensional array in AngularJS

I have this function: getProducts(){ this.auth.getProducts().subscribe(data => { this.turmas = []; this.produtos = []; this.cursos = []; for (var i = 0; i < Object.keys(data).length; i++ ) {...
asked by 17.05.2017 / 16:01
0
answers

Referencing Factory on the Angular Controller

Good evening, how do I instantiate Factory on the Controller? I have the following error: var app = angular.module('App', []); app.controller('LoginCtrl', function ($scope, $http, LoginFactory) {... I have the above code     
asked by 28.05.2017 / 04:11