Questions tagged [angular5]

Questions about Angular version 5, the web framework from Google. Use this tag for Angular questions which are specific to only version 5. Use tag Angular for any Angular questions which are not specific to an individual version.

Questions about Angular version 5, the web framework from Google.

You can read more about Angular version 5 here

You can find Angular version 5 official documents here

6545 questions
2
votes
0 answers

Angular5 - disable mat-list-option

I use this code in my Angular5 application: {{activityType |…
quma
  • 5,233
  • 26
  • 80
  • 146
2
votes
2 answers

ng4: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked

i am using angular material stepper and the functionality is working as expected and getting below error: Live Demo:
2
votes
2 answers

Display a single Observable, not an array

I search around the web and no problem to find how display an Observable. But I don't find how display an Observable to a form. I'd like display firstName value I tried this : {{ myModel.firstName | async }} and I'd like use…
TheBoubou
  • 19,487
  • 54
  • 148
  • 236
2
votes
1 answer

How to store a value locally to a variable even after the page reloads in angular 5

I have used WebStorageServie in my angular 5 application to store a value that is selected once and is accessible to the whole application. It works all fine but when the page is reloaded the data stored in the variable gets refreshed too. The…
2
votes
0 answers

Angular 5 - remove default HTTP headers from request

The problem here is that whenever I make a http post request to the server. This is what I see in my network tab Accept: application/json, text/plain, */* Accept-Encoding: gzip, deflate, br Accept-Language: en,en-GB;q=0.9 Authorization: Bearer…
edrich13
  • 703
  • 6
  • 15
2
votes
1 answer

How to list clients inside ng2-select in angular5?

I would like to initialize my select with a variable called : listClient, which exists in component : project.component.ts. I'm using ng2-select in angular5. This is the file project.component.ts: import {Component, OnInit, ViewChild} from…
dEs12ZER
  • 788
  • 4
  • 24
  • 51
2
votes
3 answers

Create button spinner when clicked in angular 5

I am trying to create a spinner when button is clicked but it seems its not being run, this is what i did in my component.html
2
votes
0 answers

Errors on running express Server with Node.js with Universal Angular 5

I have tweo problems. First, I can't pass a queryParam from server.ts to AppCompoment.ts. Second, the service translateService throws ERROR [Error] without message when is executed on the server, but works fine when is executed on the browser. Here…
2
votes
1 answer

JHipster - dynamic filtering for the entities using API call from elasticsearch - how to implement it with angular5 in a propper way?

I'm new to Jhipster and also I'm not so a experienced developer. So I have generated a Jhipster project and need a simple table with dynamic column-filtering option. I've already seen there is everything I need generated from Jhipster on…
user2465181
  • 21
  • 1
  • 4
2
votes
2 answers

Tools for xlf/xmb files

I am using JIT translation for my project and my translation files are in .xlf format. But clients/partners who will do the translation dont have much of technical knowledge so they might find it difficult to read xlf file and provide…
ishwarya
  • 51
  • 5
2
votes
1 answer

Modifying an Javascript object copy makes the original object to change in Angular 5 Reactive Forms

I'm trying to create a copy of my reactive form value object (with spread operator or Object.assign) and apply some changes to it before sending it to my server. This is the code that builds up my form, and it works as expected in my…
2
votes
2 answers

How to create a global timer on application level in Angular?

I would like to have a timer that would fire logout() in my authentication.service at a specific time automatically no matter on which page I am in my application. I tried creating a timer on my AuthenticationService but the problem is that if I…
SamuraiJack
  • 5,131
  • 15
  • 89
  • 195
2
votes
3 answers

How to automatically logout based on expiry timestamp of jwt token?

I want application to automatically logout based on expiry token. Angular Client Code: login(credentials) { return this.http.post('http://something/api/login/', credentials) .map(response => { let result = response.json(); …
SamuraiJack
  • 5,131
  • 15
  • 89
  • 195
2
votes
2 answers

Angular 5 - Service Not Updating Subscribed Variable

I'm pretty new to Angular.. I have a AuthService in my web app that authenticate users via Angularfire2 (firebase) and insert the email and a flag (indicating whether user filled the profile data form) into a firebase database. My route guard checks…
2
votes
1 answer

How to load a 3rd third party library with the Angular 5 CLI?

I am attempting to use a 3rd party library in my Angular 5 app by configuring global scripts. This question outlines what I am trying to do although I think this might be at Angular 4: Loading third party library with Angular-cli The library I…
Jay Cummins
  • 1,039
  • 2
  • 14
  • 31
1 2 3
99
100