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

Can't apply css to an iframe (the tag itself)

I have a content editor, and using that editor I want the user to be able to save links to external domains and display that as an iframe. The iframe shows up, however when I try to apply CSS rules to the iframe (not the content inside the iframe,…
Jonas Mohammed
  • 377
  • 4
  • 14
2
votes
1 answer

Sending POST data to php using angular 5

I'm trying to call a web service from angular 5 to PHP. I'm using POST method but I have trouble retrieving data in PHP side. Send data is shown in payload but it's not retrieved in php side. Angular service.ts this.URL =…
RJ_7
  • 123
  • 2
  • 9
2
votes
1 answer

Set checkbox to indeterminate

I have a requirement where if checkbox current state is indeterminate then user clicks it, then state changes to checked, again clicks on it(means second click) it should set to indeterminate instead of unchecked. Any idea how to do that.
Ankita Jaiswal
  • 262
  • 4
  • 17
2
votes
3 answers

Angular HttpPost method returns as 405 method not allowed

Angular HttpPost method returns as 405 method not allowed. service call: private fileUploadUrl = 'file-tranfer/uploadFile'; formHtppOptions(params): any { const httpOptions = { headers: {'Content-Type': 'application/json',…
user10089204
2
votes
1 answer

IONIC 3 filePath (native path) issue in case of PDF or DOC files

I am trying to choose pdf of doc files using fileChooser plugin of IONIC 3 and I am getting the response like this content://com.coloros.filemanager/file_share/storage/emulated/0/documents/certificatenew.pdf then I am trying to get the native path…
Avik Nath
  • 33
  • 3
2
votes
2 answers

.NET Core - CORS error even after enabling CORS

I am trying to call the WebAPI method to get some data, but it throws a Cross-Origin Read Blocking (CORB) blocked cross-origin response https://localhost:44332/api/Controller/Action with MIME type text/html. even though I have enabled CORS in my…
2
votes
0 answers

Ngx-json-viewer has all json fields collapsed or none?

I am using the ngx-json-viewer to "prettify" my json, by having collapsible fields. Below is my how I load it in: It works as it says, however the fields are either…
Ryan Fasching
  • 449
  • 2
  • 11
  • 21
2
votes
2 answers

Switching between two styles for the same component

I'm trying to include two style URLS in my angular app , I tried several other similar questions, but the answers are not working for me.I don't know how to fix. What I want to achieve is to switch between two styles based on if condition Why I…
Omar Abdelhady
  • 1,528
  • 4
  • 19
  • 31
2
votes
0 answers

Change the value of a mat-slider element with Angular5

I have multiple mat-slider elements in my template and i want to change the value of a specific slider. I know how to do it with MatRadioButton and other Material design components but it looks like mat-slider doesn't offer the option to get the id…
lory
  • 635
  • 2
  • 10
  • 20
2
votes
1 answer

Angular 5 disable and enable checkbox based on condition

I'm trying to implement a validation in which i want to disable the button if a specific value entered by user matches the value returned from a service, below is my code: In the component, i call the service which returns the usernames like below,…
Alexi Felix
  • 153
  • 1
  • 4
  • 12
2
votes
2 answers

Not able to loop json object in angular2

I have a respone object like below: If I am looping through this object its giving me error ERROR TypeError: Cannot read property 'forEach' of undefined My code: getBooklist() { return…
akeeseth
  • 845
  • 2
  • 15
  • 32
2
votes
1 answer

how to set value to (current page thorugh TS)pagination in ngx-bootstrap pagination?

I am using ngx-bootstrap pagination and I am trying to set value to page through ts file. I am setting this value from two component and in one component value is setting and pagination is set to the page, but in other component it is not setting…
2
votes
2 answers

error handling in angular 5, catch errors from backend api in frontend

I need advise for handling errors in front-end of web application. When I call a service to get the community according to community in web app, I want it to catch an error. For example for catching errors like 404. There is a service for getting…
Nodira
  • 656
  • 1
  • 9
  • 23
2
votes
1 answer

Chart js background color changes on click

I have stacked bar in built with chart js. The bar has three rows with the top row background set as white like below. The above works fine and this is how i set this.barChart.datasets = [ { label: myLabels1, data: myData1, …
Nuru Salihu
  • 4,756
  • 17
  • 65
  • 116
2
votes
4 answers

Make Pie Chart in Angular 5

How to make pie chart in Angular 5. I am hard coded data (data not from API) and want make pie chart in basis of expiration and lot satus. Below is my code component.html
Naeem
  • 259
  • 2
  • 7
  • 18