Category "angular"

Subscribing to route params is not working

I have a page /news with parameter page. For example: /news;page=2. I don't want to reinitialize news page when page is changed. I just want to subscribe to pag

I'm new to Angular, I'm trying to figure out where I'm wrong

I keep getting this error and I'm not sure what to do?[1] [1]: https://i.stack.imgur.com/mQ3Xo.png

Move focus to next control on key Enter

I have found some project on Angular 1.x where user can move focus to next control by pressing Enter key. 'use strict'; app.directive('setTabEnter', function

Fucntion not working inside razorpay ondismiss callback in Angular 12

I have a function inside ondissmiss callback options.modal.ondismiss = () => { console.log("its working"); this.detectChanges(); this.isPaying = false

Function inside ngIf is called multiple times, after a single click event- Angular2_Typescript

Hello this is the first time I qm putting question on stackoverflow. I am developing an application in angular2: v2.1.0 (typescript- v2.0.10). I am using "ng2-

Separate event block to events by interval in full calendar

app.component.ts @ViewChild('calendar') calendarComponent: FullCalendarComponent = <FullCalendarComponent>{}; calendarOptions: CalendarOptions = {

How to fix angular z-Index is not a known CSS property

I get the following [webpack-dev-server] WARNING ▲ [WARNING] "z-Index" is not a known CSS property styles.css:119530:2: 119530 │ z-Inde

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