Skip to main content
0 votes
1 answer
136 views

Angular standalone components library and NGRX slices

I'm migrating an application to standalone components using the following: ng generate @angular/core:standalone I've already migrated every component to standalone. I now need to remove unnecesary ...
cppstudy's user avatar
1 vote
1 answer
51 views

Functional style interceptors - How to provide them with dependencies

Imagine the situation where you provide any lib to client. Simple scenario, spinner interceptor which needs spinner service. In old way it was possible to: providers: [ { provide: ...
turtle's user avatar
  • 41
1 vote
1 answer
71 views

In Angular 12, how do I ship my library's assets?

I have a standard Angular 12 library workspace that I created through "ng generate library my-lib". my-lib has a component that shows an image asset. My consumer app uses my-lib component ...
Lucas Pottersky's user avatar
1 vote
1 answer
190 views

Angular Library Routing Not Working When Used Inside Angular 19 App

I'm working on an Angular 19 app that uses a custom Angular library, and I'm having trouble getting the routing inside the library to work properly. The app is a legacy app and all the components are ...
Kedar Marathe's user avatar
1 vote
1 answer
255 views

How to handle module imports specific to a library in an angular standalone app?

I have a library material-extension inside my angular workspace, in which I'm creating some components I require but Angular Material is lacking. In this extension I've installed the module ngx-editor,...
Otto Abnormalverbraucher's user avatar
0 votes
2 answers
524 views

How to import font assets?

I am trying to create an Angular 19 library with a personalized fonts linked directly into a global SCSS file. On build time, I have the exact same error being raised by builder: src/lib/label/label....
Corentin THIBAUD's user avatar
3 votes
0 answers
205 views

Angular 17 Library build size is too large (40MB)

I have made an Angular 17 library that I want to publish, but I have noticed that one file in particular in my build is very large. My dist folder has a fesm2022 directory, which contains an .mjs file ...
DeejC's user avatar
  • 179
2 votes
2 answers
415 views

Using input Signal in Angular Library

When using an Angular (19) Library project within another Angular 19 Application project (these are separate projects) using npm link, I get following runtime error when building the application for ...
Thomas's user avatar
  • 10.8k
1 vote
2 answers
71 views

How to use a service from a library project, which has some dependecy like toastr, in another angular library project

I have a one service in my library project which have dependency on toastr in my angular project import { Injectable } from '@angular/core'; import { ToastrService } from 'ngx-toastr'; import { ...
Prabhakar's user avatar
  • 338
0 votes
0 answers
38 views

Angular Multi Library in a Workspace

In order to manage my own projects better in Angular, I will create some libraries named ngx-suffa in the workspace. Each library will be under the same workspace. For example: @ngx-suffa/core, @ngx-...
Ersin's user avatar
  • 21
2 votes
1 answer
155 views

Troubleshooting NG0203 Error: Issues with Angular Library and HttpClient Injection in Production Build

I wasn't able to solve it. I'm counting on your help. I have an Angular application and a library. In the library, I have a service where I inject HttpClient. I set HttpClient as a provider in the ...
Tomasz Jaworski's user avatar
1 vote
1 answer
42 views

How to maintain module level theme mixins css files while creating angular library?

I am creating angular library which exposes most of the feature modules along with global css. The global CSS file again imports CSS files which contains theme mixins for each modules as follows: ...
Prashant Biradar's user avatar
1 vote
1 answer
182 views

How to copy the README.md file, inside an angular project before publishing it to npm

I've created a library with Angular libraries This is my pretty default project structure - README.md - package.json - angular.json - projects - my-project - ng-package.json - package.json ...
Raphaël Balet's user avatar
-1 votes
2 answers
48 views

Angular Singlton Generic Service with dynamic return type

i have this event management service in my angular application. i want to set the return type of the OnEvent() method dynamiclly and i want to set the type where i inject the service in my components. ...
Pouya Babaie's user avatar
0 votes
0 answers
230 views

Angular 18 Library & Showcase - ng test doesn't find Spec files

tldr; Trying to determine why running ng test library is returning Executed 0 of 0 SUCCESS. I have an Angular Workspace setup with two projects: Workspace Projects Library Showcase The Library ...
Eric R's user avatar
  • 713

15 30 50 per page
1
2 3 4 5
44