My question is not about codes properly, but about how to better organize project files.
I know this is an issue that does not have a right answer, nor does it have the best answer. But as I am developing a project now where I am encountering...
I need a way to lock a button until the
ng-click is completed, to prevent the user from clicking the button again, thinking that nothing happened or anything.
Is there any good way to do this, using directives to something like this?...
Hello. I need to change the value of a variable in angularJS but I'm encountering the following problem: "Can not set property 'quantity' of undefined".
When I click the add button, I need the quantity variable contained in commodity1 t...
I'm trying to list all of my product sizes once, eg 38, 39, 40, 41 based on the sizes of my array, to mount a filter bar.
$scope.listaProdutos = [
{
id: 1,
nome: "Lorem ipsum dolor 1",
preco: 129.90,
foto: "...
Main function, which will return the value chave = data.chave :
var chave = '';
$scope.submitForm = function() {
$http({
method : 'POST',
url : 'validar.php',
dataType: 'json',
data :...
I have the following error and can not solve:
Error:
Uncaught SyntaxError: Unexpected token ] in JSON at position 142
at JSON.parse (<anonymous>)
at XMLHttpRequest.xmlhttp.onreadystatechange (forma_pag_cad_controller.js:24)
The str...
I'm working with angular and need to add a message on the screen when pressing the check code button. An error message or success.
Angle Controller
angular.module().controller(){
vm.validarProtocolo = function(){...
I have a config.json file in the root of my project with some information that can be changed: folder path, etc.
I can not create constants (angular.constant) in the code, as I said the values of the file can be changed in production.
But...
In a controller, I have two HTTP requests:
function findProfessionalEmail(professional) {
EmailHunter.findProfessionalEmail(professional.company_name, professional.first_name,
professionalLastName).then(function (da...
Let's say I have a vehicle object that has the following attributes converting my C # class to Json:
{
"UsuarioId": 0,
"TipoId": 0,
"MarcaId": 0,
"ModeloId": 0,
"VersaoId": 0,
"Quilometragem": 0,
"AnoFabricacao": 0,
"AnoModelo...