Questions tagged as 'angularjs'

2
answers

Show float field in currency format using filters in AngularJS

I'm working with AngularJS and to show the user a field using a comma, I'm unfortunately forced to make a replace on the point. I wonder if there are any filter or directive to solve the case. In my code, I need a floa...
asked by 20.01.2016 / 14:35
1
answer

How to delete data using angular, php and ui-route?

I'm trying to make a method to delete a record from the database and the following message looks like in the console:    GET > I'm using ui-router's angular. Here are my codes: html: <table width="200"> <tr>...
asked by 12.01.2016 / 18:46
1
answer

Block routes according to the user's permission AngularJS

I have a system where I log in to a user, if all right, the server returns an object and I store that object in sessionStorage . I can retrieve this object to do some validations, eg render some components according to the user's permissio...
asked by 02.10.2015 / 14:45
1
answer

Add to a category

I can not make the new tasks added belong to the selected category in select. angular.module('TarefApp', []); angular.module('TarefApp') .controller('TarefasController', function($scope) { $scope.tarefas = []; $scope.addT...
asked by 03.10.2015 / 18:32
1
answer

Response handling of $ http.get

Hello, I'm looking for information in a local database with the following code: var app = angular.module('app',[]); app.controller('conexao',function($scope, $http){ $scope.names = []; $http.get('http://localhost/angular/conect/connec...
asked by 25.11.2015 / 23:03
1
answer

AngularJS with Single Page and Ng-View does not work correctly

I am using the following material as a reference: link I have created the files with the structure shown in the material to learn about the routes that AngularJS makes available and I am putting the files in the Apache root directory and...
asked by 14.10.2015 / 01:36
1
answer

Spring, Angular JS and exception handling in the Service layer

I have an application that uses jasper-reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7 , tomcat 8 and on the front end we use angularjs . The requests rest are made via ajax . The application is all set to receive o...
asked by 04.12.2015 / 13:44
1
answer

Include angular.js using maven in Java Spring project

I'm studying Spring Framework with Maven, in the insert dependencies part I'm having a bit of trouble trying to insert angular.js into the html page, in the pom.xml file, the angularjs dependency looks like this: <dependency> <...
asked by 15.09.2015 / 04:51
1
answer

I'm trying to change the property value of an object with ng-click:

When I click the button, I want to change the value of the addButton property within the variable gens to true . Can anyone help me? Follow the example in Codepen .     
asked by 17.09.2015 / 00:11
1
answer

How to create a js function directive

I have a function to validate date: function validateDate(id) { var RegExPattern = /^((((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02]) [\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6...
asked by 15.10.2015 / 23:44