Behrouz Riahi
Behrouz Riahi

Reputation: 1791

Is there a way to handle routes in electron?

1) What to use for routing in Electron project?

2) Do I have to use front-end framework like VueJS?

3) Can I use BlazeJS with Electron?

Upvotes: 1

Views: 3593

Answers (1)

unseen_damage
unseen_damage

Reputation: 1376

1) Depends on the framework you use. You can use routing, and it will basically make the Electron app function as a SPA.

2) You don't have to use VueJS. You can use plain javascript, Angular, React, etc.

3) You can't yet use Blaze directly. It isn't in NPM yet, and is Meteor only based on their documentation. If you can figure out how to integrate Meteor into your Electron project, then most likely you can use Blaze through that.

EDIT

To answer the question in your comment:

You can take a look at the browser history api for doing something like routing in plain javascript. Otherwise, check out this blog for ideas or navigo for something you don't have to code from scratch

Upvotes: 4

Related Questions