#Overriding providers for different platforms/environments

3 messages · Page 1 of 1 (latest)

broken osprey
#

I want to be able to use my angular app both as regular webapp and as electron app. Electron app sometimes needs slightly different functionality (e.g some libraries don't work in the electron environment). I was thinking about creating some sort of PlatformElectron module, which will override some providers for the environment. But at this point I'm not sure if I'm looking for a correct thing. Anybody did something similiar?

hollow thunder
broken osprey