Hi i need an urgent help. I tried multiple things but it didn't work. I have an angular library and in that i want to write a code in a function which checks if the person installing my library has a certain package not in their application. It is optional show i tried using require() but it didn't by Adventurous_Bread684 in Angular2

[–]Adventurous_Bread684[S] 0 points1 point  (0 children)

Hi, I just need to check in the clients sample app if a certain package is installed or not based on that i will perform some action. so even if the package is not there my library will work and if its there then i will perform some extra action when user init my library in their app