Questions tagged as 'angularjs'

2
answers

Error passing PHP Array to AngularJS by JSON

I am in doubt on a code I am developing, I am passing a query on the MySql database and I need this response to return in JSON for angularJS to understand and write in HTML. Follow the code: <?php header('Content-Type:text/html;charset...
asked by 06.12.2015 / 17:11
1
answer

DMZ with Ajax on client

My problem is this, I've been developing a Single-Page Application that will eventually be posted to a DMZ server. On the other side I will have a API that will receive the requests of my front , the problem is: my cli...
asked by 07.12.2015 / 14:03
1
answer

How to put mask on table with angle?

How to put a monetary mask on a table? For the inputs I used the ui-money-mask directive, but I need to put it in a table cell. <td>{{item.valor}}</td>     
asked by 11.12.2015 / 13:57
2
answers

How to do when to click on an item from a menu the tab receive the corresponding view in angularJS?

Well guys I'm starting to study angularjs, and in my application I wanted to do something like this. I have a dropdown menu and I also have some tabs that I created manually. When I clicked on a menu item I wanted to make this tab receive the...
asked by 17.11.2015 / 13:03
1
answer

Separate login page from other pages that are loaded from ng-view

I have a small application SPA ( Single Page Application ) with AngularJS where all pages are loaded in index.html through ng-view . But I added a layout with a sidebar and a few more things on that page and I call...
asked by 10.11.2015 / 12:49
2
answers

Angular $ timeout or Javascript timeout?

I am a beginner in Angular JS. I noticed that we have a service in Angular called $timeout . I was curious to understand why this service exists, since natively has setTimeout . What is the difference between $timeout an...
asked by 25.07.2016 / 18:15
1
answer

Angled Factory to enter data into the bank

How do I create a function, in factory, to enter data in the database? I have this: .factory('pegaContas', ['$http', function($http) { var _getContasEntrada = function(id_empresa) { return $http.post("php/index.php", id_empresa);...
asked by 21.11.2015 / 15:09
1
answer

I can not call a function with ng-click

I'm learning AngularJS and I have a problem that I can not solve. I have a function inside a controller that is inside a module. This function is responsible for assembling an accordion element with several items: $scope.montaAccordion = fu...
asked by 03.11.2015 / 16:42
1
answer

error in $ http with ionic and spring

I have an API with spring framework follow the method below: @RequestMapping(value = "/users", method = RequestMethod.GET) public @ResponseBody ResponseEntity<List<Usuario>> listUsers () { return new ResponseEntity<List<U...
asked by 08.02.2016 / 15:30
1
answer

Pass values between policies

I'm starting with angular and I have a question. I have the following scenario: I created a directive with the responsibility of displaying message on the screen. Below her code. message.js "use strict"; angular.module("layout") .directive...
asked by 27.10.2015 / 01:32