Questions tagged as 'angularjs'

1
answer

Angle Request $ http is not returning data

Javascript code $http({ url: "http://app.calculadoradesementes.com.br", method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, data: { nome: "Rafael", email: "[email protected]"...
asked by 17.02.2016 / 19:16
1
answer

AngularJs Factory in another file

Good morning I want to create a separate file for each factory that I have to declare in my project, but it is not working: App.js file var GestaoGastos = angular.module('GestaoGastos', ['ngMaterial', 'ngRoute', 'ngMessages', 'ngResource...
asked by 08.01.2016 / 13:42
1
answer

Create rotating banner with AngularJS?

I'm trying to create a rotating banner with AngularJS. I want the next 1 minute to be drawn a position of an array of images and to display the reference image. How to do this? I'm trying like this. JS var app = angular.module('star...
asked by 16.12.2015 / 14:27
2
answers

Do RETURN when the function is finished

How do I return to alert("SUCESSO") as soon as I drop into return alert("ELSE"); ? sincronizar: function () { sincronizarCliente().then(function () { alert("SUCESSO"); }, function () { alert("SEM SUCESSO");...
asked by 12.04.2016 / 15:06
2
answers

Problems with ng-repeat

I have a problem with ng-repeat, can you help me please? php code public function listar_extras() { $data = json_decode(file_get_contents("php://input")); $tamanho = $data->tamanho; $sPizza = $data->sPizza; $cont = 0;...
asked by 03.03.2016 / 18:41
1
answer

Show only selected checkboxes

Hello, I would like to know how I can do to when clicking on the completed task button it just present me the selected tasks in the list. Done Tasks button: <div class="form-group col-xs-3"> <button class="btn btn-warning btn-b...
asked by 26.10.2015 / 04:50
1
answer

Create a policy

Hello, someone could help me, I am just starting my angular teachings and would like to know how I would create a directive for the list of categories and tasks. I have no idea what could be done if you can help me. HTML: <body> &...
asked by 25.10.2015 / 05:39
2
answers

How to remove item from the array in Service, after using $ filter in the AngularJS controller?

I have a Service that provides a to-do list. After getting this list through the dependency injection in my controller I set a filter to order that completed tasks (task.done == true) are last in the view list. The problem is that after I app...
asked by 30.10.2015 / 04:49
1
answer

Problem with ui-sref

I'm having trouble doing a POST using ui-sref. I need to call a controller by passing an ID where it will return me the data recorded in the database. It works fine when I use the route, but when I use ui.route I'm having a problem. With ngRo...
asked by 26.10.2015 / 18:22
2
answers

One Function does not recognize the other

I'm having trouble setting up a service for angular JS, I call a function and when it calls another it says that it does not recognize what it called as a function Uncaught TypeError: teste.redirect is not a function The code I'm using is t...
asked by 16.10.2015 / 16:24