webextensions-examples icon indicating copy to clipboard operation
webextensions-examples copied to clipboard

Add Angular 4 example for WebExtensions

Open BojanKogoj opened this issue 7 years ago • 7 comments

Similar to React / ES6 Popup Example

There are a few guides out there (here and here), but I'd like to see an official example that works out of the box.

BojanKogoj avatar Oct 09 '17 17:10 BojanKogoj

It's a good idea. I wonder if @cito would give us permission to use a simplified version of his setup for it :).

wbamberg avatar Oct 25 '17 17:10 wbamberg

Sure. Note that the article is for Angular 2 and a bit outdated already. I'll publish an update once Angular 5 is released which should happen in the next few days. Maybe you want to wait for that.

Cito avatar Oct 25 '17 21:10 Cito

Angular 5 is out. @Cito will you make an example or should I?

BojanKogoj avatar Nov 03 '17 14:11 BojanKogoj

@BojanKogoj I'm already on it - will push it today :)

Cito avatar Nov 03 '17 14:11 Cito

Ok, I have now updated my Pinboard-Pin extension and the article Web Extensions made with Angular to incorporate the latest changes and additions in Angular 5. Turned out that Angular 5 and Angular CLI 1.5 bring several improvements that make it even more suitable for creating Web extensions. For instance, you can now specify transpilation targets other than ES5, and turn off the creation of hashes in production builds. Everything works much more smoothly than it did with Angular 2.

Feel free to use this as a base for a more slimmed down official example.

Cito avatar Nov 04 '17 11:11 Cito

That's awesome, thank you @Cito . It will probably be a while before I have the time to do this myself, but I'd be very happy to look at PRs if anyone else wanted to.

wbamberg avatar Nov 18 '17 17:11 wbamberg

Hi @Cito can you or anyone answer this question https://stackoverflow.com/questions/51897510/migrating-chrome-extension-to-web-extension here, I have developed a chrome extension and I want the same in mozilla, please check the question it's related to this thread only.

imraqes avatar Aug 20 '18 13:08 imraqes

No activity within the last three years, closing.

rebloor avatar Jul 30 '23 23:07 rebloor