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 a shared component use its own private @ngrx/store?

I am developing an Angular shared component (in its own repo, using ng-packagr and angular 5, to be published as an npm package) and I would like to use @ngrx/store because the component is complex enough to justify this. I would like the store to…
Lyn Headley
  • 11,368
  • 3
  • 33
  • 35
2
votes
0 answers

Angular5 template driven form with custom validation does not reset Validation errors

I am using angular5 forms with custom validation. But on form reset validation errors does not resets. I am using this validator for checking white spaces in the textfield. How do we reset the controls with validation states of Template driven…
Anil Mule
  • 111
  • 1
  • 8
2
votes
3 answers

Return a mock http response instead of server call in angular4

I have a function myFunc() which i subscribe to. If it is called with X then i want it to be a normal HTTP response from the Server. If it is called without X, i want it to return a 'fake' http response with an empty array as a result. How can i do…
Nabil A
  • 71
  • 3
2
votes
1 answer

Global file access from anywhere in angular 4

In my angular 4 project I have a made a file of some constants and getting access to it I am importing that file to my services file and can access the variables, but the problem is in each and every services I have to import that file. Is there…
Sandip Nag
  • 968
  • 2
  • 18
  • 34
2
votes
2 answers

How do I include a separate SCSS file for a component in Rails 5.2 / Angular 5 / Webpacker?

I've been following some basic guides for getting Angular 5 running with Rails 5 and Webpacker but apparently there have been some recent changes that have thrown a wrench in things. For example, I'm following this guide to get a project set up from…
2
votes
2 answers

Is Angular 6 is removing default element margins?

The issue I'm experiencing is that html elements (buttons in the examples below) in Angular 6 seem to be missing their default margin: Angular 5.2.2 example - has default margin/spacing between the buttons Angular 6.0 example - is missing the…
Josh C.
  • 295
  • 1
  • 3
  • 8
2
votes
2 answers

Why my Angular 5 application not work with deep linking?

I'm developing one Angular 5 application deployed on Azure App Service. My problem is that when I try to access with a direct link my application redirect me to home page. These are my application routes: // Imports @NgModule({ declarations: [ …
ilMattion
  • 1,841
  • 2
  • 24
  • 47
2
votes
0 answers

Cluster Image not Appearing (only number appearing) - agm-cluster-marker - Angular 5

I wanted a cluster image to appear as a background to the cluster marker count but only the number is being displayed Following is the code to get the above Output:
2
votes
0 answers

Angular 5: missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property

I followed this article for customizing UI components: https://github.com/akveo/nebular/blob/master/docs/articles/auth-ui.md But after that lots of errors started occuring due to files not found. Article says to just copy component folder. I fixed…
Umair Malik
  • 1,403
  • 3
  • 30
  • 59
2
votes
1 answer

Can't show a material snackbar for the backend errors using custom ErrorHandler Angular 5

I am trying to show a material snackbar for the backend errors in my Angular 5 application. I tried multiple ways but none worked, seems that the ErrorHandler class needs some special way to call the snackbar correctly. Can someone please advise how…
Ahmed Elkoussy
  • 8,162
  • 10
  • 60
  • 85
2
votes
2 answers

How to import Bootstrap 4 theme in Angular 4 or 4+ app

I'm new in learning Angular. I have tried to import bootstrap 4 single page template in angular 4 This one: https://startbootstrap.com/template-overviews/new-age/.But when i see this in my localhost it doesn't load some function like smooth…
2
votes
4 answers

How to get value of --env variable in Angular 5 server.ts?

Currently i have three environments and I am trying to get --env=prod value in my server.ts which in this case is prod I am getting the right environment object in my angular app but issues getting it in my server.ts file which is necessary for…
mkamranhamid
  • 583
  • 4
  • 18
2
votes
1 answer

How to fix a single column in horizontal scrolling of mat-table in Angular Material 2

I am using Angular Material 2 with Angular 5. I am using mat-table. I want to fix a single column in mat-table. When i scroll the horizontal bar then a column will fix and not scrolling. Is there possible to fixed a column in mat-table. Angular…
monir tuhin
  • 441
  • 3
  • 13
  • 27
2
votes
0 answers

How to create a new pie chart using highcharts in Angular 5

I am working on a Angular 5 application where I am asked to use highcharts and display some information on pie charts and bar charts. The data that I get from the web api call is in json format and looks like: [ { "fruit": "Orange", count:…
Valla
  • 2,414
  • 11
  • 42
  • 73
2
votes
0 answers

Get latest version of application on reload using Angular 5 & Service Worker

I am using Angular 5 with service worker for one of my application. Service worker is working fine as expected but I am not able to use SwUpdate functionality of service worker. I am using below code in my app component to check for update- import…
Raj
  • 264
  • 1
  • 3
  • 18
1 2 3
99
100