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
1 answer

After upgrade from Angular 5 to 6 , I got many rxjs errors

After upgrade from Angular 5 to 6 , I got many rxjs errors Although I have followed the official guide, I still had many rxjs errors after updating my packages & following the steps of the guide.
Ahmed Elkoussy
  • 8,162
  • 10
  • 60
  • 85
2
votes
1 answer

Angular and Angular material upgrade from v5.x to v6.x

I am trying to update my existing angular project from v5.x to v6.x along with angular material. I have done the following steps - I deleted existing node_module folder Followed all the steps mentioned here - update to ng 6 Installed latest…
satyendra kumar
  • 719
  • 2
  • 10
  • 19
2
votes
2 answers

Integration of Angular 5 with Spring MVC

I am trying to make a web based application using Spring MVC (5th version) & Angular 5... My idea is, Spring MVC will provide restful web-services & Angular 5 will call those web-services & manages User Interface at client side.. My question is,…
rahul shalgar
  • 1,198
  • 5
  • 24
  • 39
2
votes
2 answers

How to get to show the default value on form load with reactive form

I've got many examples of this. Using FormGroup, Ion Select, the value is always set properly, but nothing shows until I manually open the select and close it. This behavior makes the Reactive Form totally useless for editing or updating, which…
bgies
  • 11,986
  • 2
  • 18
  • 14
2
votes
1 answer

Interceptor.intercept Is Not A Function

I've been trying to implement an application-wide interceptor, however, I keep seeing the following error: TypeError: this.interceptor.intercept is not a function After much debugging, I realized the reason why it's happening is because I have a…
Sebastian Frohm
  • 418
  • 5
  • 16
2
votes
0 answers

Ho to write unit test for the modal open?

Hi I am writing unit test case for my angular code in Jasmine. I have modal in my popup. On button click I am opening modal. Below is my component code. //declaration @ViewChild('editorModal') editorModal: ModalDirective; //button click …
Niranjan
  • 537
  • 2
  • 14
  • 31
2
votes
1 answer

Post to Angular 4/5 page

I am in a situation where I have to provide a link of my web app to client & they will be posting form to my web page. The app is created on Angular 5. I have been googling around; but didn't find the the solution. I hope any of you could help me…
Ahsan Iqbal
  • 78
  • 1
  • 4
  • 10
2
votes
0 answers

SweetAlert2 Display out put from a Directive (Angular 4/5/6)

Im using a custom directive to diplay QRcode on my site, i want the QR code to display on a sweetalert2 pop up. I've tried to address it like: Swal({title: 'HTML QR Code!', html: '' }); But the up…
2
votes
1 answer

RouterModule.forRoot() called twice

I'm trying to implement lazyloading into my angular 5 app, but i get error: Uncaught (in promise): Error: RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead. There my routing modules:…
2
votes
2 answers

Angular patchValue not setting input field value

I am trying to set an input value via form group using patchValue() but the input still remains blank, this is my code sample... component.html
CE0
  • 191
  • 3
  • 7
  • 18
2
votes
2 answers

Angular Bind a value to Directive parameter

I'm building a directive which changes a button's text while a condition remains true. For example while saving a from, until it is being processed, the text of the submit button should change to Saving... and as the form submission finished, it…
Subhan
  • 1,544
  • 3
  • 25
  • 58
2
votes
1 answer

Angular - Dynamic header

I have a website currently under development. Issue: When accessing a page, the front page is briefly displayed - and then the current page is shown. Please try refreshing this link to have better understanding. Notice that while loading, the front…
2
votes
1 answer

Angular 5 TypeError: Cannot read property undefined

My utils service which returns the data from the mysql database using express framework import { Injectable } from '@angular/core'; import { Http, HttpModule, Headers, RequestOptions } from '@angular/http'; import { Component, OnInit } from…
YuvaMac
  • 419
  • 1
  • 6
  • 13
2
votes
1 answer

I want to populate the data from Database and put it in a drop down using Angular Front end and Spring boot back end

I have a Database in MySQL and I need to get the data from Database and populate in a Drop down using AngularJS. I have tried this code in my AngularJS for the drop down but it doesn't get the data from database and populate it.