Questions tagged as 'angularjs'

1
answer

Masks in AngularJS

I'd like to know how to use angular-input-masks . I did all the steps said in it, but I could not make it work. I'm using AngularJS, here is my index page. <!DOCTYPE html> <html lang="en"> <head> <meta charset=...
asked by 09.04.2018 / 08:33
1
answer

Function AngularJS is not respecting the condition!

I have this function, which gets two parameters, however, when I pass the different name, it falls into if in the same way. $scope.deleteCategory = function(id, nome) { if(nome == 'Despesas Administrativas' || 'Despesas com Empreg...
asked by 07.05.2018 / 15:26
2
answers

Max length in input type number html

I have an input type number <div class="form-group col-md-3"> <label class="lb">Valor total</label> <input type="number" min="0" id="idValorTotalProdutoP" ng-model="subTotalProduto" class="form-co...
asked by 18.03.2018 / 22:26
1
answer

Return the URL of an image via JSON

I am communicating with Behance API and I have the following script written in Angular 1.5.5: var app = angular.module('PortfolioApp', []); app.controller('PortfolioCtrl', function($scope, portfolioFactory) { portfolioFactory.getBehance(...
asked by 02.02.2018 / 12:08
2
answers

Refresh page with route without "#" AngularJs

I changed the routes to load the pages without the "#". The problem is when I do F5 it returns error 404. var app = angular.module("app", ['ngRoute']); app.config(function ($routeProvider, $locationProvider) { $locationProvider.html5Mo...
asked by 23.03.2018 / 14:11
1
answer

Validation of form - AngularJS

I'm trying to validate a simple form, where when the user leaves some field blank a div is shown with this error. Follow the code var playlistApp = angular.module('playlistApp', []); playlistApp.controller("LucasCtrl", ['$scope', functi...
asked by 28.01.2018 / 01:47
1
answer

Convert value from a component select options em number

I have a select component and would like to convert the value to the Number format because when I save it I need a value 2 and not "2" The ideal would be to convert all tag <option>...
asked by 28.02.2018 / 20:10
1
answer

How to import non-angular Javascript?

Greeting for all, I know how to import css files into a project made with the new version of Angular as you can see below: Files angular-cli.json "styles": [ "../node_modules/bootstrap/dist/css/bootstrap.css", "../node...
asked by 28.12.2017 / 09:15
1
answer

AngularJS - Access a variable from a service

How do I access the LatLng variable in the application? $http({ method: 'POST', url: './database/getCep.php' }).then(function successCallback(response) { var LatLng = $scope.get_cep = response.data; console.l...
asked by 27.11.2017 / 20:14
2
answers

How to give a disabled in a form depending on which radio button to choose?

Good afternoon ... I have the following radio buttons: <input type="radio" name="radio1" value="entrada"> Entrada <input type="radio" name="radio1" value="saida"> Saida I also have the following forms: <div class="form-...
asked by 14.11.2017 / 20:49