Forum Posts

rajia rimi
Jun 22, 2022
In Unravel Ideas & Questions
Next, you'll need to prepare your Angular app for universal deployment. Industry Email List It involves four steps: Add the universal support. Open your root module (usually App Module) and add an App ID to the Browser Module import. You will do this in the “imports” section just below the Ng Module declaration. Create the server root module. Next, you need Industry Email List to create a new module named App Server Module. Make sure it imports Server. Module from the platform-serve Industry Email List dependency you added in the previous step. Create the main file. You will need one master file for your universal set. Industry Email List Create it in the root (in the src folder) and export the App Server Module class from this file. Create a config file. The App Server Module class needs a configuration file. Create one in JSON format. It should look something like this: Create a new build target Your Angular source directory . Should include a file named angular Notice Industry Email List tIndustry Email Listhe “constructor” attribute four lines down. The value after the colon (“server”) is the server name. You can update it if you want to give it another name. Now you can create your app. Assuming you kept the server name "server", just go to your command line and type the following: ng run my- project: server You should see output that looks like this:
Update Your Angular Application Industry Email List content media
0
0
2

rajia rimi

More actions