Skip to main content

Questions tagged [angular16]

For questions regarding Angular specific to version 16. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.

angular16
0 votes
1 answer
22 views

How to override Angular Inbuit function

I am working on an Angular 16 project and need to override a specific function within the built-in nonce.js file. However, I am unsure about the correct approach to achieve this. Could someone guide ...
Tech Geek's user avatar
1 vote
1 answer
22 views

How to bootstrap angular library from the angular application

I am having a angular library in npm repo. Installed that library in another angular application. Do we have any direct options to bootstrap the remote angular library from the main project? Need to ...
Gnik's user avatar
  • 7,380
0 votes
0 answers
26 views

SVG Images not loading properly as strict CSP Policy blocking style execution of SVGs, using mat-icon in Angular 16

I am using angular16 with Angular Material. In CSP Policy I have replaced unsafe-inline with 'nonce-myDynamicNonce'. I am applying CSP_NONCE provider value as per angular16 inbuilt way. Now everything ...
Tech Geek's user avatar
1 vote
0 answers
17 views

ON SIT env It is not showing nonce value on style tag using Angular 16

I am using Angular 16. I have applied CSP policy by removing unsafe-inline and unsafe-eval and replaced with nonce-noncestring. Now I am providing both CSP_NONCE in main.ts and ngCspNonce ="...
Tech Geek's user avatar
0 votes
0 answers
39 views

Error Cannot read properties of undefined (reading 'replace') with ngx-monaco-editor-v2 version 16 and Angular 16

I am facing an issue with monaco-editor, specifically since version 16 of ngx-monaco-editor-v2, monaco-editor v0.41, and angular v16. The error in console is Cannot read properties of undefined (...
Suppadeliux's user avatar
1 vote
3 answers
52 views

Unable to use an Object's property in templates when imported from a diferent class

I am new to angular and i am facing issue where Angular16 does not display the properties of an object when defined in an external class. Check out the following illustration. I have defined a class ...
wtc claw's user avatar
1 vote
0 answers
17 views

How to bootstrap the routing, NgRx etc of MFE module from the shell project forcibly using module federation?

I want to bootstrap or initiate the MFE's routing, NgRx and other library instances from the Shell project programatically. Now I am doing lazy load of modules from shell as below loadChildren: () =&...
Gnik's user avatar
  • 7,380
0 votes
0 answers
54 views

Update CSP_NONCE value dynamically on each api request using Angular 16

Hello Angular Community, I am working on implementing strict CSP (Content Security Policy) remediation in my Angular 16 application. Our server sends a nonce value in the CSP response header with each ...
Tech Geek's user avatar
0 votes
0 answers
37 views

How to extract a component from dynamically loaded angular remote module

How to extract the Component from module federation remote module At present I am having the below code Remote code: exposes: { './TodoModule': './src/todo/todo.module.ts', './...
Gnik's user avatar
  • 7,380
0 votes
0 answers
25 views

After update angular 16 - property '_isScalar' does not exist on type 'Observable<any[]>'

I recently updated to angular 16 from V15, After change the observable which we declared doesn't contain/returning the propertly '_isScalar' which is worked before "rxjs": "~7.5.5",...
Karthiga's user avatar
  • 897
0 votes
0 answers
39 views

Angular 16 migration causes material errors

Can't bind to 'htmlFor' since it isn't a known property of 'mat-datepicker-toggle' Can't bind to 'matDatepicker' since it isn't a known property of 'input' NG8004: No pipe found with name 'translate'...
Ashish Chavan's user avatar
0 votes
0 answers
27 views

How to reduce the size of assets images PNG and SVG files in angular build

I want to reduce/compress the size of assets folder content especially images (PNG, JPEG, SVG). In the current build its taking the actual size so build size is increased upto 200MB. How can reduce ...
Gnik's user avatar
  • 7,380
0 votes
0 answers
22 views

Error: Uncaught (in promise): TypeError: Class constructor MsalGuard cannot be invoked without 'new'

I am using Microsoft Login in my Angular application and below is my version of Angular and Node.JS installed Angular CLI: 16.2.14 Node: 18.17.1 I have created a module name "Home" in which ...
Saloni Singh's user avatar
1 vote
0 answers
47 views

Angular bindingcan't bind to 'ngModelOptions' since it isn't a known property of input after upgraded angular 15 to 16

`I am doing angular application migration 14 to 16. First i converted 14 to 15 it's working fine. then i converted angular 15 to 16 here i got error. can't bind to 'ngModelOptions' since it isn't a ...
saranilango's user avatar
0 votes
0 answers
23 views

How to append custom component as element in Angular directive?

I have a directive that's supposed to add an icon to the targeted element. It works today by setting the innerHTML to SVG as a string. Now, I'd like to improve it, so I declared a custom component ...
Konrad Viltersten's user avatar

15 30 50 per page
1
2 3 4 5
22