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
-1
votes
1 answer

Angular library 404 loading.gif not found

I currently have monorepo which contains a standard Angular application. At the same level as my app, I have an Angular workspace which contains only a library. I did the necessary mapping in the main app to tell it where my library is. I can use…
jdc
  • 384
  • 4
  • 15
-1
votes
1 answer

Angular : unable to load component from library : Cannot read properties of null (reading '11')

Under my Angular app I'm trying to load a component which i'm getting from a local angular library My component (from library) looks like this : import { Component, OnInit } from '@angular/core'; @Component({ selector: 'lib-ada-headband-lib', …
firasKoubaa
  • 6,439
  • 25
  • 79
  • 148
-1
votes
1 answer

how to create angular library in version 8 of components which can use in future angular versions like 12, 13, 14 etc?

Is any technique/ approach or entire new setup required for this, please help me understand this. angular element is the only one solution or any other approach we can use?
Sagar Suryawanshi
  • 195
  • 1
  • 1
  • 11
-1
votes
1 answer

How to integrate service worker in Angular library?

I am trying to develop a npm package which I can use in various projects to know whenever there is a build update user will be notified to refresh page. This concept can be achieved via service-worker in angular, But when I try to add parameter…
-1
votes
1 answer

"projects" folder not showing in Visual studio code (left side tree or explorer tree)

I have angular project running in visual studio code. I want to add an angular library. I created the library and I can see that angular has created projects folder in the root directly (sibling to src folder). But for some reason, I'm not able to…
micronyks
  • 54,797
  • 15
  • 112
  • 146
-1
votes
2 answers

Install Angular library dependencies

I'm using Angular 8. As per the business requirement, there is an isolated application that is separate from the main application but will be used in the main application. For that I created a library using the command ng generate library…
Anuj TBE
  • 9,198
  • 27
  • 136
  • 285
-1
votes
1 answer

Angular Library Forroot AutoComplete / Intellisense

I am working on an Angular Library and wanting to have configs passed in. So far, all of that is working, but the issue I am having is when I go to setup the config in the app.module forroot, I do not have any intellisense for what config options…
Godrules500
  • 467
  • 6
  • 25
-1
votes
1 answer

Angular library dependency install automatically

I have a angular library and I have that as .tgz file in my local. Now I want to use this library in one of my angular application. Is there a way, by which the dependency of library gets automatically installed when we run npm install (without…
-1
votes
1 answer

Can't resolve all parameters for xxx.service

I am not build a service from angular lib, getting error. here is my code and error. any help please? I am using angular 8 import { Injectable } from '@angular/core'; // @dynamic @Injectable({ providedIn: 'root' }) export class…
3gwebtrain
  • 14,640
  • 25
  • 121
  • 247
-1
votes
1 answer

angular library - importing @clr/angular causes a Unexpected value 'undefined' error

I want to build an angular library project with some custom components on VMware's clarity framework. running ng build --prod draft should produce a library output. Instead, I'm getting: BUILD ERROR : Unexpected value 'undefined' exported by the…
Han Che
  • 8,239
  • 19
  • 70
  • 116
-2
votes
1 answer

Is it safe to use angular libraries built with one version of Angular in an application built with another version?

Lets say for example I have an angular application built with the Angular v6 cli and that depends on an Angular library built with the Angular v8 cli. Is it safe to use this library as a dependency or should the application be updated to angular…
Fergal Rooney
  • 1,330
  • 2
  • 18
  • 31
-2
votes
1 answer

Angular library on ng build files are not included on dist folder

I have a library create with angular 9 with a project structure like below When I build the library ng build falcon-core the view-models files are not included in the dist folder I didn't find any settings related to the files structure in the…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
-2
votes
1 answer

How to expose bin javascript files out of Angular Library

I am creating a library, which exposes some bin scripts to the user, which he then can use in his build process. However I have truble with exposing such scripts to a dist package. My package.json looks like this: { "name": "my-app", "bin": { …
Humberd
  • 2,794
  • 3
  • 20
  • 37
-2
votes
1 answer

how to make my angular library installs it's dependencies when using it?

now I've made an angular library that depends on ngx bootstrap and others I don't want the library consumer to install all the dependencies first, but just install my library and that's it so I wonder if that is possible to do
Ghamry
  • 5
  • 4
1 2 3
41
42