Category "angular"

Audio not playing in Angular 7

I'm doing a big Angular 7 project for myself and I want some background music in it. So I use this: <audio id="audio" *ngIf="ship.dock != true" autoplay="t

How do I pass data to Angular routed components?

In one of my Angular 2 routes's templates (FirstComponent) I have a button first.component.html <div class="button" click="routeWithData()">Pass data an

Angular youtube player not displaying videos when app is deployed

guys! Ran into interesting behaviour when using angular youtube player(ngx-youtube-player ). The video displays perfectly fine when app is running on localhost,

How to use scrollStrategy in MatDialog?

I tried to make a scroll for a dialog in reposition strategy, but it doesn't work for me. const scrollStrategy = this.overlay.scrollStrategies.reposition(); co

*ngIf not working as expected with observable

So I have these 2 buttons: <a class="router-link nav-item" routerLink="/login" *ngIf="!isLoggedIn$ | async"> Login </a> <a class="router-link

How to use scrollStrategy in MatDialog?

I tried to make a scroll for a dialog in reposition strategy, but it doesn't work for me. const scrollStrategy = this.overlay.scrollStrategies.reposition(); co

Change Multiple CSS property from multiple CSS class dynamically in Angular

In angular, we can easily change the property of a CSS class dynamically, like if I have a class .my-class { background: url('..') } and if I used my-class a

Is it possible to add observables to a combineLatest (or similar) at run time?

I have this use case. A component should NOT be visible when from a list of Boolean observables one of those is true. That is the easy part, for this, I have my

Angular2 - Store Images in Browser cache as Key-value pair form

I'm working in Angular2. In my app, I've to load excessive amount of images. But instead of loading those images for every reload, I want to put those images i

Error: Cannot find module 'webpack' when running npm start on angular 2 webpack starter

I have cloned from here: https://github.com/AngularClass/angular2-webpack-starter Installed, with some warnings: npm install typings webpack-dev-server rimra

Adding content in file in specific place with node js (Like Angular Cli Modify app.module file)

I got the idea that node js its not just for web application for example I can create a console application with node (cli) . and already I have an interest in

ngx-useful-swiper setup in Angular 8 gives error

I followed this guide to set up swiper slider in my Angular 8 application. I get the below error when importing NgxUsefulSwiperModule into app.module.ts ERROR i

How to set global configuration for angular-cli?

I would like to make my ng serve command default with liveReload = false. I tried ng config --global serve.options.liveReload false but I got an Invalid Path e

PrimeNg Calendar: Default time for selecting start date with time - should be start of day time that is 00:00:00

I am using PrimeNg calendar widget with 2 fields that is startDate and endDate. Currently when selecting startDate, It is showing the selected date with curren

Failed at the @angular/[email protected] postinstall script

Hi I can't install the angular cli with npm install -g @angular/[email protected]. I keep getting this : > node ./bin/postinstall/script.js module.js:549 thr

Change the mat-autocomplete width?

It seems like the <mat-autocomplete> width is always the width of the input we're typing in. Is there no way to make it larger? I have a very small input

Material Angular - doesn't work properly

https://material.angular.io/guide/getting-started ng new testapp cd testapp npm install --save @angular/material @angular/cdk npm install --save @angular/anima

Angular 5 - form validation e-mail

i want to solve this problem: Angular 5 - template driven form An input-field has type email. Example: <input type="email" [(ngModel)]="model.email" #email

" npx cap add ios" fails with error "Updating iOS native dependencies with pod install - failed!"

I just created a brand new Ionic app, using command "ionic start myApp blank" I added the necessary angular dependencies to get "ionic serve" working properly.

Angular 5 - Copy to clipboard

I am trying to implement an icon that when clicked will save a variable to the user's clipboard. I have currently tried several libraries and none of them have