Questions tagged [angular]

0 votes
0 replies
URL out of the SPA wiht parameters in Angular [closed]
I have a single page application created with angular that responds to url's: https://myapp.com/#/page1   with a navbar and a footer that is di...
0 votes
0 replies
Angular IIS Deployment - ‘src’ attribute of <script> element is not a valid URI:
I am attempting to deploy an Angular 7 app to IIS. The app is in a subdirectory. I referenced this excellent article on the subject. While it app...
asked 1 month ago
0 votes
1 replies
Check a recursive JSON structure for matchinig numerical values in Set in Typescript Angular
I have a UI where initially a User has to check some checkboxes. The checkboxes have sequential IDs. The JSON Structure for it is as follows: {...
asked 1 month ago
-1 votes
0 replies
Can't uncheck checkbox using angular
I'm using a list of checkboxes in order for the user to choose a role. Only one checkbox must be selected at all times. So if I was to uncheck a...
asked 1 month ago
0 votes
1 replies
How to lazy load Angular module without CLI?
I have yet to find this specific use case described any where. If it exists, please refer me to it. I would like to achieve lazy loading of Angu...
asked 1 month ago
0 votes
1 replies
How to upgrade Angular to the latest?
I want to use the routing state, described also here, for the version 7.2.x of Angular, I have 7.1.1 currently, I tried uninstalling and reinstal...
asked 1 month ago
0 votes
1 replies
Unexpected module 'BrowserAnimationsModule' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation
This is my app.module i try to complete whole instructions in material.angular.io import { BrowserModule } from '@angular/platform-browser'; im...
0 votes
3 replies
How to hide / show a component according to the current component?
I am something new in angular, and know the answer my problem I am sure that it will make me learn a lot. in my default component the MainCompone...
asked 1 month ago
0 votes
1 replies
How to target an attribute of a self defined component in cypress?
I'm extremely new to cypress and I want to test if I click my a tag, then the video should change but I don't know how to target the video attrib...
asked 1 month ago
0 votes
2 replies
Block by CORS Policy althouht is setup in the Web API [duplicate]
This question already has an answer here: How to resolve 'preflight is invalid (redirect)' or 'redirect is not allowed...
asked 1 month ago
-1 votes
1 replies
'ngbd-accordion-basic' is not a known element:
Im trying to add a simple accordian to an Angular app and having issues. Im not sure what and where to import . Error i get is There is no dire...
asked 1 month ago
0 votes
2 replies
How do I add an HTML attribute to a dynamically created build script in Angular?
There are 4 scripts created by Angular when a project is built with ng build --prod. One of these is main.js. Is there any way I can dynamically...
asked 1 month ago
0 votes
2 replies
The data appears successfully in the console But when displayed on the page the error appears ERROR Error: Error trying to diff '[object Object]'
The data appears successfully in the console But when displayed on the page the error appears: ERROR Error: Error trying to diff '[object Obj...
asked 1 month ago
0 votes
1 replies
Angular i18n binding
How would I achieve translating a binding using Angular built-in i18n? //this works fine <mycomponent i18n-myattribute myattribute="j...
asked 1 month ago
-3 votes
0 replies
Please explain the angular code coverage report [on hold]
I am trying to understand the angular code coverage report. What do the different attributes stand for with respect to the actual code - statemen...
asked 1 month ago
0 votes
1 replies
TypeScript - “debugger;” statement does not work while working with QA Environment in Angular
I am working on a angular application with a setup of various environments. I am facing issues when I am trying set up some debug points using de...
-1 votes
2 replies
Angular http request for json file returns undefined
I started recently learning Angular, but it is a lot harder then i thought. I want to read in a json file into a chart on my main app page. This...
asked 1 month ago
0 votes
0 replies
How to display an image in angular from asp.net core
I'm building a project in angular 6 and asp.net core. I have an images saved on the server, and I save the image path and image name in the db....
asked 1 month ago
1 votes
1 replies
Expiry date issue in angular [closed]
I am getting issued date from an api and i am showing it in *ngfor using interpolation.so here is the tricky part. If the Expiry date is in Gree...
asked 1 month ago
1 votes
1 replies
ExpressionChangedAfterItHasBeenCheckedError with ngClass and no child component
I am trying to apply active class to my route using a custom logic, routerLinkActive is not working for some reason (may be my parent and child r...
-1 votes
1 replies
What method should I use to prevent scrolling beyond the screen size?
I am working on an Angular web app that uses ngx-webcam to take pictures from a user's cell phone camera. For the camera component I want it to t...
asked 1 month ago
0 votes
1 replies
Angular PWA - caching remote image(s)
I am trying to cache images using an Angular 7 PWA app (created via ng add @angular/pwa). Everything works perfectly except for the images. This...
-1 votes
1 replies
How to use SUPER class while extending it from an Abstract class
I have an abstract class which has 4 arguments in its own constructor: export abstract class AbstractType implements OnInit, Destroy{ constructo...
asked 1 month ago
0 votes
3 replies
How to hide keyboard after touch outside the textfield?
I have a cross-platform app. I have a form that has more than one TextField. I want to hide the keyboard when the user touch outside of the textf...
0 votes
0 replies
bootstrap Open custom component default bootstrap modal
Ng-bootstrap custom component modal it's working in button click (click)="modalDefault.show();" i need open in ts <app-modal #modalDefault&g...