306,635
questions
1
vote
1
answer
7
views
does not provide an export named 'isEqual' | Angular
import { isEqual } from 'lodash';
onSave() {
const isFormsEqual = isEqual(
this.loyaltyRewardsFormFacade.currentRewardsState(),
this.loyaltyRewardsFormFacade.transformFormData()
);...
0
votes
1
answer
23
views
JavaScript: Can't set value to textarea with custom class on the first load
Question: I am trying to programmatically set a value inside a textarea with the following code:
function setTextareaValue(textareaId, value) {
// Recursive function to wait until the element is ...
1
vote
1
answer
17
views
Angular 18: How to redirect on result of resolve
In Angular 18, I am trying to resolve a value before navigation, but redirect to another page based on that value.
Please don't link to a page titled "Redirecting Guards and Resolvers in Angular ...
1
vote
1
answer
14
views
why recent angular project build outputs individual component css source map
I generated a new Angular 18 project from scratch and brought over my components to take advantage of new option defaults and settings. I'm happy I did so, but I noticed that it now seems to be ...
1
vote
1
answer
11
views
Can you do a get(<path>) on an UntypedFormGroup if there is a '.' in the path parameter?
I have an Angular app that uses an UntypedFormGroup to store and retrieve input values from the user.
I add controls to the UntypedFormGroup using the addControl function like so:
this....
2
votes
1
answer
29
views
How do I use a font other than Roboto in Angular 18 and Material 3
I am just starting on angular 3 and have the bugs worked out. However, I am having an issue trying to get different fonts and typography to work properly
<!doctype html>
<html lang="en&...
0
votes
0
answers
13
views
In Angular, is there a way for a component's generic type to be used as a child directive's template context guard?
I've been searching around for this for a while now and I'm not sure if I'm just not asking the question the right way or what I'm trying to do isn't possible (yet? we didn't always have ...
0
votes
0
answers
9
views
Distribute i18n application with Angular with new base-href
I created an Angular application using i18n. The issue is that when I build my application with the following command ng build --configuration production --base-href / --localize, the app it always ...
1
vote
1
answer
26
views
Setup global providers for Angular unit tests
I have generated a fresh Angular 18 project and made it zoneless.
It works fine, however in all of my unit tests I am now getting the following error:
Error: NG0908: In this configuration Angular ...
0
votes
0
answers
22
views
How to load configuration in auth config module from config.json file?
Using https://github.com/damienbod/angular-auth-oidc-client for angular authentication.
Want to load auth config module configuration from config.json file as different configs for different ...
0
votes
0
answers
8
views
Cropped hover markdown description using Monaco
Using Firefox and the Angular wrapper for Monaco, I get this behaviour :
The content is not displayed properly : it is cropped by the parent component. How should I handle this case ? I registred the ...
0
votes
0
answers
15
views
Jest tests encounters unexpected token - ES6 module
I recently updated a package in my repo and when I then run the tests I get 28/339 tests failing due to Jest encountering an unexpected token.
The error I get is this:
Test suite failed to run
...
-3
votes
0
answers
37
views
Is it correct to return a simple string in an async function with a Promise return type in TypeScript?
I’m working on an Angular project using TypeScript, and I have an async function defined with the return type Promise. In some cases, I’d like to return a simple string directly. Here’s an example of ...
0
votes
0
answers
7
views
Ionic Angular SideMenu
I've been having problems with my sidemenu content, whenever the contentId="main-content" is inserted the navigated link's content(homepage) is not loaded/visible. But when I remove it, the ...
0
votes
0
answers
8
views
Webworker not appearing in code coverage report in angular
I've wrote a test for a web worker in angular and it run properly.
The problem is it not appearing in the code coverage report generated after the run.
this is the code i'm testing:
/// <reference ...