Questions tagged [angular-library]

Angular library is a means for building general solutions that can be adapted for re-use in different apps. They also can be published and shared as npm packages.

Angular library is a means for building general solutions that can be adapted for re-use in different apps. They also can be published and shared as npm packages. https://angular.io/guide/libraries

629 questions
0
votes
2 answers

Property is private and only accessible within class error in Angular Library

I am trying to convert an Angular 6 application in a reusable library; here is what I did: created a new Angular workspace created a new Angular library project inside that workspace copied the artifacts from the old application inside the library…
Francesco S.
  • 53
  • 1
  • 8
0
votes
1 answer

Angular 6/7 library components - proper way to provide formGroup input?

Update 3 I worked through making my library component implement a CVA as suggested by @Ingo, but I discovered that since my component wraps @ng-select/ng-select, some of the requisite functions broke the basic functionality of ng-select. Namely,…
J E Carter II
  • 1,436
  • 1
  • 22
  • 39
0
votes
1 answer

scss compilation issue in angular lib created using angular-cli

Created(ng build my-lib) an angular lib with global scss then bundled into one file and copied to lib's folder. dist-lib/my-lib/lib/sass/my-lib.scss Now my-lib.scss imports some resources like @font-face { font-family:"Roboto Regular"; …
Sunil Garg
  • 14,608
  • 25
  • 132
  • 189
0
votes
1 answer

Build Error in Angular Library after installing and using controls of igniteui-angular

I have created an angular project which also has an angular library in which I need to install and use Ignite UI for angular. When I install it using the command "npm i igniteui-angular" and use NgxInputGroupModule in it, it starts giving build…
0
votes
1 answer

Angular - Use application theme in library

I'm writing an Angular library. I want to use the primary color of application theme in my library. I don't have access to theme.scss file, so I can't import that in my component style file. How Can I do this? Thanks
Amir Ajorloo
  • 85
  • 1
  • 5
0
votes
1 answer

Angular 2 + reset component library control

I have created an angular component library that I am installing via npm into my applications. I have a drop down that gets populated and used fine...the problem comes when I want to "reset" the component library controls to do a fresh…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
0
votes
2 answers

How to import angular 6 library into other library angular 6 library?

I have created a shared library and created new application feature library and I want to import shared library in the app feature library. How can I import or include one library into another library?
0
votes
2 answers

ng-bootstrap Alert disappears until full page refresh

I'm using ng-bootstrap and have added an Alert to a component.
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
0
votes
2 answers

Angular 2+ ng-bootstrap modal pass Html

Okay, I have my modal set up like this. Please remember that I am working in a Component Library not just the application. Inside my Component Library... I have my template
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
0
votes
2 answers

Angular 2+ add ng-bootstrap Modal to component library

I'm working with ng-bootstrap and I would like to add a reuseable modal to the component library I've built. I have my template

0
votes
1 answer

Angular ng-packagr custom package auto-generated paths issues

There is a custom library in our project. And the issue is when I run the command ng build *package_name* everything (classes and etc.) builds fine except paths in functions. For example, it generates line export declare const selectState: import…
Denis
  • 17
  • 1
  • 9
0
votes
1 answer

Angular 6 injecting window token in library service

I have a library that has the code from this website post: https://brianflove.com/2018/01/11/angular-window-provider/ In my library, I also have a service where I want to have access to the window object. However, adding in the following to the…
annihilate
  • 598
  • 1
  • 5
  • 16
0
votes
1 answer

Injecting 3rd party component inside angular attribute directive in angular library

Error: NullInjectorError: No provider for ColumnComponent! I created an angular library, then inside the library I created an attribute directive which is used by main app to bind data to the 3rd party component's…
0
votes
2 answers

Add Angular material to component library

I've added angular material to a component library...well I thought I did! Everything is working in the test harness (app.module,app.component, etc...) However when I export my library I get the error Can't resolve '@angular/material' So…
0
votes
1 answer

Access Angular 6 component library values with 2 way binding

Working in Angular 6 I've successfully created a Angular Component Library and added a component that has a drop down control in it. I've added the neccessary imports in app.module and got my library component to show up!!! ..using its selector…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57