angular-library

How to make Angular watch multiple libraries for changes and recompile when needed

邮差的信 提交于 2021-02-11 12:40:44
问题 This question is much the same as Make angular app watch for libraries changes and update itself. But, that question was never successfully answered as applies to the use of multiple libraries. I also reviewed Angular library and live reload and surveyed the answers and links from both questions. My app is using two libraries: lib-1 and lib-2 . When those files are edited, they are ignored and the app does not recompile. To see changes, I have to restart the server which really slows things

How to make Angular watch multiple libraries for changes and recompile when needed

◇◆丶佛笑我妖孽 提交于 2021-02-11 12:39:13
问题 This question is much the same as Make angular app watch for libraries changes and update itself. But, that question was never successfully answered as applies to the use of multiple libraries. I also reviewed Angular library and live reload and surveyed the answers and links from both questions. My app is using two libraries: lib-1 and lib-2 . When those files are edited, they are ignored and the app does not recompile. To see changes, I have to restart the server which really slows things

Angular library bundle dependencies

拟墨画扇 提交于 2021-02-08 21:35:24
问题 I've created and bundled an Angular (7.2.0) Library using the CLI: ng g library MyLibrary ng build MyLibrary This gives me the my-libary.umd.js bundle that I need. Currently, all dependencies are added as peerDependencies in the library package.json. What I would like to do is to actually bundle some dependencies with the library (.umd). Adding them as " dependencies " instead of " peerDependencies " does not seem to do the trick, I don't really see what the difference is? How can I do that?

Created custom radio button library, but did not check radio button while binding with reactive-form

£可爱£侵袭症+ 提交于 2021-01-28 14:13:18
问题 Angular library I am trying to created a library for custom radio button with its role like warning(color yellow dot) error(color red dot) info(color blue dot) and success(color green dot) without angular library it will work fine, After that I move my css and template to library but now it is not work is expected I have provide value from reactive from but it does not check as expect I have also added screenshot at the end what I am expecting and what I get currently radio-button.html <label

How can I load only one module from Angular library instead of all modules

故事扮演 提交于 2020-06-27 16:24:22
问题 I have generated an angular library and created two modules named Admin and Client in it. In each module, I have one service. lib admin admin.service.ts amdin.module.ts client client.service.ts client.module.ts public-api.ts The content of public-api.ts is: export * from './lib/admin/admin.module'; export * from './lib/admin/admin.service'; export * from './lib/admin/client.module'; export * from './lib/client/client.service'; Then: ng build core This way, if I import AdminModule in AppModule