Questions tagged as 'angularjs'

2
answers

Focus on the next input when reaching the maximum number of characters

I created a directive to move the cursor to the next field when it reaches the maximum size of characters, as follows: var app = angular.module("myApp", []); app.directive("moverProximoCampo", function() { return { restric...
asked by 25.06.2018 / 21:53
1
answer

Dynamic table with angle

I'm trying to make a PivotTable where it will work as follows: - will have 2 input fields type text, one for the text value of the line and another of the column, each of them with a "add" button; - the ideal would be to be able to exclude the r...
asked by 14.07.2017 / 23:20
1
answer

treatment of multiple promisses in angular

I'm developing a code and at the same I build some areas of influence for given locations (with coordinates and radius of distance or walking time from the coordinate), so when I finish building it I have to query the database postgres to...
asked by 03.08.2017 / 21:38
1
answer

Doubts about routes JS angular x ASP.NET MVC

I would like to remedy some doubts about Angular JS vs. ASP.NET MVC. I created an empty ASP.NET MVC application that will work with WEB API, configured all my routes with AngularJS, created an html page and its controllers, all with angularJS...
asked by 23.11.2017 / 12:26
2
answers

Insert array within a scope of the angle

Hello, guys, I'm a beginner in angular, and I'd like to know what I'm doing wrong here. Look at this: Every time I click a button I want it to add some "modified" information from an object called a match to the betting object. The problem is th...
asked by 09.02.2017 / 14:22
1
answer

Is it possible to manipulate a template from an abstract route, in other routes, dynamically?

At angular I created an abstract route using $ stateProvider. This route is where you have the side navigation menu and two toolbar, one with some buttons, and another one of search. I created an abstract route with the idea of reusing som...
asked by 15.12.2016 / 11:37
1
answer

Wide Angle API

I am trying to make a request using angular connecting to REST API built in laravel. XMLHttpRequest cannot load http://localhost:8000/rest/v1/entidades/licitacoes. No 'Access-Control-Allow-Origin' header is present on the requested resource....
asked by 21.06.2016 / 20:31
3
answers

if within an ng-class in the angularJS

Why can not I do this next check in my ng-class? setClass(sessao.tipo_2 != 3D ? sessao.tipo_3:sessao.tipo_2)" According to the short-if logic, this syntax is right?     
asked by 28.03.2016 / 22:51
1
answer

How to change the date format in java script?

I am getting the date entered by the user, which selects from a datepicker . In the form the format is displayed right dd/mm/yyyy , but the problem is when I get the date to play in a variável , it comes as follows: Wed Mar 2...
asked by 23.03.2016 / 20:33
2
answers

Modifying value of my IsAuthenticated in AngularJS

When the token is different from null, my IsAuthenticated must be positive, app.controller("HomeCtrl", function ($scope, $location) { let token = localStorage.getItem("token"); $scope.user = JSON.parse(token); if (token === null)...
asked by 14.03.2017 / 18:33