Skip to content
Advertisement

Tag: angular

Cannot find module ‘@angular-devkit/schematics/tasks’

when I try to add @angular/material to my project I get this error. Using Angular Cli: 7.2.1, Node 11.6.0 Cannot find module ‘@angular-devkit/schematics/tasks’    Error: Cannot find module ‘@angular-devkit/schematics/tasks’    at Function.Module._resolveFilename (internal/modules /cjs/loader.js:603:15)    at Function.Module._load (internal/modules/cjs/loader.js:529:25)    at Module.require (internal/modules/cjs/loader.js:657:17)    at require (internal/modules/cjs/helpers.js:22:18)    at Object. (/Users/ricardobaeza/Projects/node_modules/@angular/material/schematics/ng-add/index.js:10:17)    at Module._compile (internal/modules/cjs/loader.js:721:30)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)    at Module.load (internal/modules/cjs/loader.js:620:32)    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)    at Function.Module._load (internal/modules/cjs/loader.js:552:3) Answer

Select All checkbox Angular material 5 | Gmail style if selecting individual it will also select

I need to create a select all functionality in angular material, I am sharing code below which is partially working. .ts file select all/deselect is working but the individual selection is not working properly, if selected the first one it is selecting the select all but it should work when selected all individual, Please help. Answer Just change your selectchildren

wait for asynchronous functions to finish in Angular

So I was working on a new component in Angular and in the ngOninit I have the following asynchronous functions below… This.getUserProfile needs to be finished before I can call this.getPrivateGroup() and this.getPrivateGroup() needs to be finished before I can call this.loadGroupPosts(). I know I could write these functions inside the callback of the asynchronous requests, but I was wondering

Angular HTML Fullscreen Video Autoplay Not Working

Can anyone explain why this autoplay video is not working in chrome? The video is stored in firebase storage. It plays when you visit a page and then go back to home page, but not when you first enter the page on refresh. It is an angular 6 application as well. Answer Using onloadedmetadata & `oncanplay=”this.play()”< are the javascript solutions

Angular 7 shared service is not shared

I am new to angular and I am trying to pass data from one component(HomeComponent) to another component(ProfileComponent) after navigation. I created a shared service(DataService). I injected the service in both the HomeComponent and ProfileComponent but when I set the value of the message property in HomeComponent and try to retrieve it in the ProfileComponent the value is undefined because

How to use high charts in Angular?

I am using High chart-stacked column bar chart. I can able to get the Bar with skyblue and white colors but I need a bar with points at 24, 41 and 49 y_axis points as shown in the picutre. Please help me in achieve this. Thanks in advance. The code which I tried so far. Answer You can use Highcharts.SVGRenderer

Advertisement