1

I'm currently working on a user interface for an Eclipse & IntelliJ plugin which should work within a SWT Browser instance. Therefore everything has to be written in HTML and JavaScript, but has to work locally.

I wanted to try out Angular 2, but it seems to be a very big problem, that I won't have my files hosted on a server, because of all the internally used XHR requests. Is there any way I could trick it into working without having to deliver a local server (which would be kind of a overkill)?

Thanks in advance for any ideas!

6
  • Try to check out this answer: stackoverflow.com/questions/32223555/… It might be useful for you too. Commented Apr 25, 2016 at 11:40
  • 1
    There are complete repositories that use a local server for development, but are also able to create a productive build that creates only html and js: github.com/mgechev/angular2-seed Commented Apr 25, 2016 at 11:43
  • Will the created build be able to run locally without the development server? Because your proposed repo doesn't really look like it would solve my problem. I don't mind developing with a local server at all - the problem that I have is, that I don't want to distribute my code with a server... Commented Apr 26, 2016 at 8:20
  • When you create the productiv build, you can copy paste it and just open the index.html Commented Apr 26, 2016 at 8:31
  • Okay, thanks a lot! I will give it a try! Commented Apr 26, 2016 at 8:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.