Neutralinojs binary version used : v4.10.0
Neutralinojs client version used : v3.8.2
Angular version used : v15.0.0
Question : How to use Angular as frontend framework with Neutralinojs?
Neutralinojs binary version used : v4.10.0
Neutralinojs client version used : v3.8.2
Angular version used : v15.0.0
Question : How to use Angular as frontend framework with Neutralinojs?
On
just go to this page,
https://neutralino.js.org/docs/getting-started/using-frontend-libraries
read the page carefully and do step by step, at the End
it occures an Error:
neutralino-win_x64.exe was stopped with error code ...
download this file
https://github.com/neutralinojs/neutralinojs/releases/download/v4.14.0/neutralinojs-v4.14.0.zip
and replace it to the bin folder, it'll work, if you needed any help you can message me, good luck
Note: I'm making this because the documentation for NeutralinoJS is currently incomplete, and also because I don't want to forget.
Before we start, there're several things in this answer that assumes you to know how:
Setup
"frontend"and the NeutralinoJS project"backend"ng newandneu createcommands.window.Neutralino. To do this, you'll need the type definitions file. Install@neutralinojs/libas adevDependencyin your Angular projectmain.tsfile (or any other*.component.tsfile, as long as this code runs before you use the NeutralinoJS API), add the following code:neutralino.jsfile and move it to theassetsfolder inside your Angular project from either:/node_modules/@neutralinojs/lib/dist/neutralino.jsinside your Angular project folderOR
/resources/js/neutralino.jsinside your Neutralinojs project folderneutralino.jsfile to your Angular project'sassetsfolder, now call it fromindex.htmlon your Angular project by adding:angular.jsonfile located in the root folder of your Angular project and modify the following property:neutralino.config.jsonfile and modify the following property:And we're set.
Development / Production
or the equivalent
ngcommand:*Note: This command will remove the
resourcesfolder inside your NeutralinoJS folder (or the specified folder path from step 9 in the setup process).Once the command from step 1 has finished compiling and is waiting for changes:
2a. run the following command in the terminal where your NeutralinoJS project is located:
2b. For production, run the following command in the terminal where your NeutralinoJS project is located:
*Note: Make sure to use a different terminal from the one used in step 1, as both processes need to run simultaneously.
Now you have NeutralinoJS working together with Angular and change detection.