Skip to main content

All Questions

Tagged with
1 vote
1 answer
165 views

How do I transpile Angular 17 ES6 app to ES5 for Android 10 devices

Working on a web app for a specialized device that runs Android 10 (Webview uses Chromium <80). When I try to serve the app and test on the Android device, I get errors for using optional chaining ...
ianrose2k's user avatar
5 votes
4 answers
1k views

how to set `export default class` when generating components instead of `export class`

I don't know if setting export default for my components is a bad practice, I'm new to Angular and I want to do it because I want to import the component without the curly braces I want the ng g c ...
otaxhu's user avatar
  • 370
6 votes
1 answer
3k views

Typescript warning after update: TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022"

I'm in the process of upgrading my front end libraries with the following commands. ncu -u npm install --legacy-peer-deps The following have been updated that I believe are relevant. typescript 4.8....
Nayrb's user avatar
  • 1,043
1 vote
0 answers
665 views

How to use @swimlane/ngx-graph package in angular project version 11.2.5?

I have created an angular project. The package.json file will look like below : package.json : { "name": "xxx", "version": "1.0.0", "description"...
vijay s's user avatar
  • 409
0 votes
2 answers
485 views

How to set a dynamic validation with new form control

I have an object that should build a form const textBox = { fontColor: 'red', fontSize: '20', placeholder: 'name', name: 'input name', label: 'mohamed', validation: { required: true }...
Mohamed Ibrahim's user avatar
0 votes
1 answer
79 views

How to set an arrow-style function as a default parameter for Input()

So I have a component that displays rows of data in a table. I have an input for the function that should run if someone double clicks a row. I want to default that to doing something with the router. ...
Brian Davis's user avatar
1 vote
0 answers
141 views

Not able to access angular element inside React app

I have create an Angular element like below : import { inject, Injector, NgModule } from '@angular/core'; import { createCustomElement } from '@angular/elements'; import { BrowserModule } from '@...
Avinash's user avatar
  • 333
3 votes
1 answer
1k views

react-router cannot navigate after Logout without refreshing page

I use the following approach to logout and although there is no error on console and localHistory is cleaned successfully, it cannot navigate to login page without refreshing current page. const ...
Jack's user avatar
  • 1
0 votes
1 answer
99 views

I want to detect changes on @input Object

I'm trying to detect changes on 'draft' Object from the parent component but ngOnChange() doesn't fire. this is my try but it is not even enter the debugger @Input() draft: Contribution; ...
Mohamed Ibrahim's user avatar
1 vote
0 answers
154 views

How to pass list of objects from angular component to html template created in material design

I have method getReports in my angular component where I subscribe to endpoint which looks like list of objects after console log, and where I want to display form, until issi, status for every report ...
Aleksandar's user avatar
0 votes
1 answer
1k views

How to get current initial value of Angular form control using RxJs

I have a situation where I need to listen to the value of the form control from a different component. the valueChanges does this just fine for any changes in the dropdown. However I get a null upon ...
RDK's user avatar
  • 107
1 vote
1 answer
107 views

Why to return arrow function from a function [duplicate]

Can someone please guide/refer the JS concept that I need to go through to undertand below. I have below code snippet in my Application. It looks like it is returning a function dAFCreate, but I see ...
sql_dummy's user avatar
  • 773
0 votes
0 answers
53 views

JS Library performace exporting and importing

My question revolves around javascript/typescript libraries and performance related to library size and size of exports/imports. I have created a rather large Angular application that uses an Nx ...
afriedman111's user avatar
  • 2,379
1 vote
1 answer
1k views

Error loading @capacitor/ios package.json: Error: Cannot find module '@capacitor/ios/package'

I am new to the Ionic Framework while running command ionic info its showing following warning. My inoic application version is as: ionic info: Ionic CLI : 6.20.4 (/usr/lib/...
vidur punj's user avatar
  • 5,941
-1 votes
1 answer
1k views

Angular - Map Object array value to same key

I have an object like this, const product = { name: 'watch', color: ['brown', 'white'] } Expected result: I need to flatten this object to below object format, name: 'watch' color: 'brown' color: ...
Abhikhya's user avatar
  • 121

15 30 50 per page
1
2 3 4 5
52
X