Category "angular"

Running a single test file

Is there a way to run ng test for a single file instead of for the entire test suite? Ideally, I'd like to get the quickest possible feedback loop when I'm edi

nebular menu parent active class not working

I am using nebular with Angular 6, facing an issue while clicking on menu item , active class on parent menu item not added. but if you see the http://akveo.com

How to use Angular 7 cdkDropList between components?

I have a list of items (students) in a mat-list component on the left side of my screen (general list). I also have a list of class-room Components on the right

cannot connect Peerjs in angular

tsconfig.json::: { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "forceConsistentCasingInFileNames": true, "strict

Error: (SystemJS) XHR error (404 Not Found) loading service

I'm currently trying to use a service to pass a string. However, at my AppComponent I'm getting undefined Service. This is the error: Error: (SystemJS) XHR er

How to access Response cookies in angular2?

I'm trying to access this cookies (the response ones): When I open the request in the chrome debug tools in the network section I can clearly see that the coo

Is it intended that, in Angular, projected content is evaluated even if it is not rendered to the DOM?

I've constructed a number of scenarios in Stackblitz that you can view here: https://stackblitz.com/edit/angular-zdyy8v The issue we're contending with in parti

Angular 2 Animation - boolean trigger?

I'm trying to trigger a transition bound to a boolean property, but this doesn't seem to fire. Here is a cut down version of my animation trigger trigger( '

Webpack 5 Module federation : Unable to Import the Remote app

I have a vanilla JS app and an Angular app. I am trying to link both these apps using module federation, both on my local environment. The following is webpack

How can I set duration of a snack-bar in angular2 (material2)

This example stays forever on the screen: snack-bar-demo.ts import {Component, ViewContainerRef} from '@angular/core'; import {MdSnackBar, MdSnackBarConfig}

Add dynamic loading messages with APP_INITIALIZER

I have an app which do some backend calls before initializing. I have a loading screen for this, which tells the user that something is currently loading. The p

Angular Universal/Ionic TypeError: head.querySelector is not a function

While trying to add SSR to an existing Angular/Ionic App, following the Ionic SSR guide, i get the following error TypeError: head.querySelector is not a funct

How to use input type file in angular material

How to use input type file in angular material Hi, I am using angular material for designing. when i go on angular material site there no input type file eleme

How to escape HTML character in angularjs. I have read using ng-blind / ng-sanitize to escape Html, but not able to implement it

I am new to Angular Js. I have used ngx-editor to make text-area with different formatting Styles. When I am submitting the content I am getting HTML tags alon

How to mock interface with Jest without creating an instance

I know we can do it in Kotlin but I did not find it with Jest. I have complex interfaces and array of those interfaces and I do not want to specify all values o

How to publish external Angular folder with my asp.net core project?

I have created an Asp net core api with an external angular project, the app works well in debug mode and I want to publish the two apps in same folder, but the

Angular CDK understanding the overlay position system

I'm really trying to understand the overlay position parameter but without any luck. I also can't find any documentation about this topic. What does the follow

Error with npm install - a pre-gyp error

I wanted to install this angular 2 calendar using npm. Tried to use npm to install it and then downloaded it and tried to install it. In both cases its failed.

angular material .textarea don't update follow variable

I tried to upload the Textfile into Textarea and edit it, but whenever I type and then upload it. Textarea will not update the contents of the files from the t

Angular2+ render a component without any wrapping tag at all

My child-component looks like: ... @Component({ selector: '[child-component]' templateUrl: './child.template.html' }) ... and my parent template like