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

"ObjectUnsubscribedError"- while reloading the angular data table using get call

this.Showdata = false; this.showSpinner = true; this.subscription = this.assessmentlistService.getAll().subscribe(response => { if (response != null) { if (response.StatusCode >= 200 && response.StatusCode < 300) { …
2
votes
0 answers

Numeric input not reflecting

I am using Ionic 3 along with Angular 5 and trying to use as below: so It should reflect like this: but when I am using above line of code then it's reflecting like normal input and can't see up and down arrow…
Rajpurohit
  • 1,951
  • 2
  • 16
  • 19
2
votes
2 answers

How to implement select all in mat-checkbox angular 5

Here is my html template

Select Employee

Select All
mjck
  • 187
  • 3
  • 5
  • 18
2
votes
0 answers

Response for preflight has invalid HTTP status code 404 in ionic 3

Getting error Response for preflight has invalid HTTP status code 404 on one of my api. Because of this the post method get converted into option method. To solve this added options in my authservice below is my code. …
Sagar Kodte
  • 3,723
  • 4
  • 23
  • 52
2
votes
1 answer

PUT request from Angular5 to spring-boot

As You know the put request looks like this : put(url: string, body: any, options?: RequestOptionsArgs): Observable So in angular for my case it looks like this : updateIntervention(id:number,idDev:number){ …
dEs12ZER
  • 788
  • 4
  • 24
  • 51
2
votes
1 answer

How to call a typescript function inside callback of a JavaScript

I'm using javascript Google Maps component in Angular 5 frontend framework export class MapComponent implements OnInit { ngOnInit() { this.initializeGMap() } initializeGMap() { var myLatlng = new google.maps.LatLng(12,77); var…
Nandhakumar Appusamy
  • 1,156
  • 13
  • 22
2
votes
1 answer

Angular 5 Generate component outside app folder on Windows

I have tried all the command to generate a component in other than app folder . But angular always creates component inside app . I want to generate component inside lib folder Here is the structure : Here are the commands tried : still now…
Divyanshu Jimmy
  • 2,542
  • 5
  • 32
  • 48
2
votes
4 answers

Show form validation errors on submit in angular template driven form

I have created template driven form in Angular.
Upendra Sachan
  • 411
  • 4
  • 9
2
votes
2 answers

Uncaught (in promise): QuotaExceededError Ionic 3

Already StackOverflow have this type question but none of the answers is helpful for me, Here is my problem details- Getting error when I build the app in android device, its work fine in emulator and browser, but when I run the app into the device…
Md Alamin
  • 1,084
  • 11
  • 19
2
votes
2 answers

How to specify path from root to assets Angular?

In root of project src there is directory assets where are placed images. In user service I read these images like: return (data.photo == undefined || data.photo == null) ? '../../../assets/img/blank-person.jpg' : You can see related path, that is…
POV
  • 11,293
  • 34
  • 107
  • 201
2
votes
1 answer

Error while doing Angular Unit Testing

I am facing an error while doing Angular unit testing. I am trying to test create component Please see error below file and let me know why I am facing that, I also import the services related with the providers and imports for the module. the…
Developer
  • 279
  • 6
  • 22
2
votes
1 answer

Getting [Object Object] in angular application

Getting [Object Object] in angular form and also dropdown(select) not set to default 0 index. While in case of edit everything working fine. Do I need to initialize model properties for this create page? Edit : ngModelChange not calling the…
Sunil Kumar
  • 909
  • 2
  • 17
  • 31
2
votes
3 answers

p-dropdown is not displaying the labels correctly

I have trouble getting the dropdown component to work. The dropdown seems to detect the items it should display because it widens the itemlist according to the number of items in the array. However the spaces are all blank. This is the same…
Maurice
  • 6,698
  • 9
  • 47
  • 104
2
votes
1 answer

@viewchild for directive always return element ref instead of directive reference- angular5

I am currently working on a project where I need to pass some @input values based on component. So, that the directive will work accordingly. But the problem is I couldn't get reference of that directive. Instead I only got the elementRef in return.…
2
votes
1 answer

Display location from address stored in db

Let me explain briefly what I do want. I have module that contains 2 pages. One is for creating new company and the other one is for preview company info + edit that company info. Everything works fine. Now when I click in my table one of those…
Alen
  • 75
  • 1
  • 8