Skip to main content

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.

16 votes
4 answers
20k views

mat-slide-toggle shouldn't change it's state when I click cancel in confirmation window

When I checked the slide toggle it should work as expected. But when I try to uncheck it there is a confirmation window asking if you are sure. When I click cancel in that confirmation window, still ...
107 votes
26 answers
343k views

Error: Schema validation failed with the following errors: Data path "" should NOT have additional properties(project)

After migrating application from angular 5 to 6, on running ng serve the following errors pop up. Schema validation failed with the following errors: Data path "" should NOT have additional ...
4 votes
1 answer
11k views

Reducing memory utilization of Angular app

I've created a simple Angular app with one Form and a Table (PrimeNg DataTable). Just to get a substantial difference in memory utilization with initial and final readings, I performed multiple Form ...
1 vote
1 answer
16k views

Using authorization http header in Chrome

I am trying to see what's in an API URL however it request basic authorization http header. how do i use the header to watch the URL directly from Chrome.
2 votes
4 answers
11k views

How to add prefix +6 in input when user click on the input text

I am using angular material(https://material.angular.io/components/form-field/overview) for input. I want to auto add '+6' when user click on the field to insert phone number Currently the '6' prefix ...
1 vote
1 answer
14k views

"Http failure response for http://localhost:4200/api/: 404 Not Found" Angular 5

I start in Angular 5, I want to display the list of Cities from a JAX-RS API, then I get the following error : Http failure response for http://localhost:4200/api/: 404 Not Found Here you will ...
9 votes
6 answers
26k views

How to get mat select selected value in tool tip using angular material

I am displaying a drop down using angular material mat select. I want to display selected element using material tool tip. <mat-select [(ngModel)]="emp" [(value)]="selected" matTooltip="{{selected}...
1 vote
2 answers
6k views

Scheduling Tasks in Angular 5

How to insert an event calendar in Angular 5 ? After much research I found FullCalendar, but I got many problems in the implementation of my Angular project 5. Does anyone know of something similar ...
14 votes
4 answers
11k views

@ngx-translate with lazy-loaded module in Angular 5

I'm using @ngx-translate for language handling in an Angular 5 app I'm creating. The app has two feature modules, one lazy loaded and one eager loaded. The problem is that the translate pipe works ...
62 votes
9 answers
127k views

When upgrading Angular 5 to 6, I get incompatible peer dependency (using ng update @angular/core)

I am trying to update my Angular app from v5 to v6 following this guide. I have ran all these commands successfully: npm install -g @angular/cli npm install @angular/cli ng update @angular/cli The ...
28 votes
2 answers
24k views

(TypeError: Cannot read property 'length' of null at HttpHeaders.applyUpdate) Angular 5, Http Client

I'm getting this reponse when making an http request in service. Here's the Login component export class LoginComponent { credentials: Credentials; constructor( private auth: AuthService, ...
98 votes
3 answers
22k views

Angular Service Worker - Failed to load resource: the server responded with a status of 504 (Gateway Timeout)

I am using the Angular-CLI 1.6.6 and @angular/service-worker 5.2.5 in our Angular 5.2.5 app. Everything works fine on the local lite-server, as well as on the production server, except for one error ...
15 votes
4 answers
24k views

Keycloak redirects to login on page refresh

I am using Keycloak JavaScript adapter in my Angular 5 app and whilst my login and redirection works, the problem is that whenever I refresh my ng app it will again ask for Keycloak login although I ...
9 votes
8 answers
46k views

How to change time from 24 to 12 hour format in angular 5

I have used input type time in my application to receive time: <mat-input-container> <input matInput formControlName="start_time" type="time" placeholder="Time Start"> <p class="...
31 votes
6 answers
136k views

Angular 5 file upload: Failed to set the 'value' property on 'HTMLInputElement'

I have a form for uploading a file in an angular 5 app, and as I have copied it exactly from a code I had written a while ago, I can swear it had worked before. Here is my HTML code: <form [...

15 30 50 per page
1
2 3 4 5
436