Questions tagged as 'angularjs'

1
answer

Error getting token on interceptor - Type 'Promisevoid | ObservableHttpEventany 'is not assignable to type' ObservableHttpEventany '

I'm creating an interceptor to send the token along with the requests to Api. I use @ionic/storage to save my user information. However, when I try to get the token in the constructor to save to a variable (eg private token: string), m...
asked by 07.06.2018 / 16:12
0
answers

Pass angular array on json to mvc controller

I have this function that generates an array, I need to pass to the mvc controller through JSON, but it is not passing, it follows what I'm doing: var app = angular.module('myApp', []); app.controller('myCtrl', function ($scope) {...
asked by 06.06.2018 / 16:47
0
answers

Angualar JS translate and dynamic elements?

I'm using AngularJS to create a multi-lingual site, but I'm having problems with dynamically created elements. var app = angular.module('myApp', ['pascalprecht.translate']); app.config(function($translateProvider) { $translateProvider.tra...
asked by 14.06.2018 / 16:23
1
answer

Update screen data after an asynchronous call Angular 1.6

I have the following problem! I have a form with an id field. this guy is passed to my GET method which is asynchronous. The data comes back perfectly from the server (line $scope.produto = resposta.data ), but the data is not updated on t...
asked by 08.06.2018 / 02:42
0
answers

Clear screen after transition - IONIC app

I'm creating an app with ionic and angular, and I'm making use of tabs. I have 5 tabs, and one of them displays a "Menu" page, this page contains the listing of other pages that are not on the tabs, each item in that listing redirects to a diffe...
asked by 11.05.2018 / 18:10
1
answer

Interaction in browser behavior when leaving the page

Is there any way to open a modal question, when the person tries to exit a game in the browser, type, changing the address in the URL or giving refresh, or even harder, wanting to close the browser? I have this code, but it does not solve all...
asked by 11.06.2018 / 14:24
1
answer

Calculation using Angular JS

IgothelpfromEsmigoltosolveoneoftheproblemsandI'minsistingherebecauseIdidnotfindanythingontheinternetthatcouldhelpme.TherearefewexamplesofwhatIneedontheinternet.Thelinecalculationisok(quantityxunitvalue)plusthesumandsubtractionoftheTotalAmountIa...
asked by 13.06.2018 / 20:42
0
answers

Angular muddle is not defined

I'm new to programming, but I'm studying. I'm encountering the following angular problem:    WARNING: Tried to load angular more than once, ReferenceError: dot is not defined.     
asked by 04.05.2018 / 17:41
0
answers

How to use ng-hide to hide Pin on google maps?

How do I make a toggle (hide / show) for the pins on the map? I'm using this library NGMAP : My view code: <div map-lazy-load="https://maps-api-ssl.google.com/maps/api/js" map-lazy-load-params="{{googleMapsUrl}}" ng-init="my_m...
asked by 20.04.2018 / 17:31
1
answer

How to create a directive in AngularJs that creates a mask and did not modify the ng-model?

I created a directive where it serves as a mask for checking account, so when I type a value, always the rightmost value in the input is the digit of my account, until then beauty is working. The problem is that I do not want to change the value...
asked by 19.04.2018 / 19:16