Questions tagged as 'angularjs'

2
answers

Safety Angular Application

I have questions about security, I'll illustrate: In my front , in my controller I have this method: $scope.getAllpessoaGrid = function (strPesquisa, tipopessoa) { $scope.progressbar.start(); $http.post("/pessoa/getAll", {...
asked by 06.04.2017 / 22:46
3
answers

How can I create a filter to fill zero with the zero in the angular?

I'm developing an application using Laravel and AngularJS . I've always found it difficult to format a number to fill in with zeros in Javascript, so I opted to use Laravel to bring me the number of the id field already forma...
asked by 29.09.2016 / 15:08
1
answer

How to use Angular UI Router? and what are the advantages?

How to use Angular UI Router? and what are the advantages? What long-term advantages of using it and not the standard of angularjs?     
asked by 19.08.2014 / 03:41
2
answers

How to restrict access to routes in angularjs?

How do I restrict access on some routes, and allows logged-in users to access your content on Angulajs.     
asked by 25.08.2015 / 10:31
2
answers

Is it possible to restrict access to variable information with AngularJs?

Hello, I'm new to development and would like to know if there is any way to hide variable information in AngularJs, I'm using a MongoLab API and I did not want to leave my apiKey visible to anyone who debug the code in the browser, I'm runnin...
asked by 14.10.2015 / 05:44
3
answers

How to access the $ scope variable?

I would like to know how I can access the contents of the scope variable in AngularJS? Theoretically I did everything "correct", ie declaring the variable in controller and assigning values in it: var app = angular.module('va...
asked by 18.08.2015 / 17:29
2
answers

Show or hide a pregnancy option, whenever the user selects in the register that is female

How do I display or hide an option on a patient record page to tell whether the patient is pregnant or not. The option would only appear if the user checked the Female option. The image below shows a preview of the registration page. The part...
asked by 30.09.2015 / 20:40
2
answers

How to format the date of an input [date] in the format dd / mm / yyyy '?

I have a page, built with AngularJS, which has a input [type = date] . Basically, what I want is to take that date and format (ie, display to the user) using the format 'dd/MM/yyyy' (for example: 28/05/2015 ). What is the pr...
asked by 29.05.2015 / 04:48
2
answers

How do I make a function wait for the $ http result?

I'm having trouble with the following code: $http({ method: 'POST', url: '/publicacao/', data: $scope.publicacao, headers: {'Content-Type': 'application/json'} }).success(function(publicacao) { $scope.publicacao = publicaca...
asked by 29.01.2017 / 21:29
2
answers

Key code does not hold the ESC key

I'm making a function so that when a keyboard key is pressed, it performs another function. With the letter keys, numbers and until Enter works. However, the ESC key does not work. Has anyone ever had to do something similar? Follow the code...
asked by 10.08.2017 / 14:52