How to execute an app using Angular Generator

Official Content
This documentation is valid for:

With Angular applications development, when you Run your main object, a window console is opened, the application is automatically installed on a server (that is launched for development purposes).

If this fails, you can execute it manually by following these steps:

Open a command-line prompt, change directory to <KB Model Directory>\mobile\Angular\<main> (e.g.:LightCRM\CSharpModel\mobile\Angular\LightCRM) and run:

  • npm install

The npm install command installs all the necessary libraries to run the application under the  <KB Model Directory>\mobile\Angular\LightCRM\node_modules folder. This folder contains all the libraries needed to execute the application, such as Angular, the library of GeneXus controls, etc., and is handled by npm from packages.json file. The packages.json file contains the list of libraries that must be installed, which are necessary to run the application, and is created by the generator.

You only need to execute it once after installing a new GeneXus build.

  • ng serve -o


The ng serve command launches the server, watches the files, and rebuilds the app as GeneXus makes changes to those files.
The -o option automatically opens the browser to http://localhost:4200/.

Once these commands are executed and the application is running, you should keep the cmd console open so the changes generated in GeneXus are automatically compiled and updated in the browser.