(DIR) Return Create A Forum - Home --------------------------------------------------------- Gaming.ga (HTM) https://wwwgetgamingpk.createaforum.com --------------------------------------------------------- ***************************************************** (DIR) Return to: General ***************************************************** #Post#: 101-------------------------------------------------- The second parameter is By: asim km Date: September 4, 2023, 12:12 am --------------------------------------------------------- By returning an object from and rendering the view on the client, we can improve performance and scalability because the server's time is not wasted rendering the view for a large number of concurrent users. Additionally, we can reuse the same to build another client, such as a or application. In this step, we will deactivate the default home page built using the view and use the view instead. Create a new folder named under. We will store all views here. Create a new file named under this folder. In this file, just type: home page Now we need to tell this view to render when the user navigates to the home page. We use routes for this. In , change the declaration of the application module as follows: I added a reference to the module in the dependencies array. Is one of the built-in modules used to configure routing. Write the following code after declaring the module: Let me break it down for you. We use the application module's methods to provide configuration for our application. This code is run once detected and a boot attempt is made. Method takes an array: ApplicationConfiguration(); the array can have zero or more dependencies, as well as functions to implement the configuration. is a service Phone Number List (HTM) https://agbdirectory.com/ defined in the module. That's why we changed the application module declaration to depend on . Our configuration function receives as parameter. [img] (HTM) https://scontent.fdac5-2.fna.fbcdn.net/v/t39.30808-6/375057161_263421249912062_5916241705508741292_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=49d041&_nc_ohc=X8atlqaGutgAX82Qsso&_nc_ht=scontent.fdac5-2.fna&oh=00_AfC7LvvObNo1o0z7LPAzwR1_80uIRLyAnIbWEAoyTshxKw&oe=64F889F9[/img] (HTM) https://agbdirectory.com/ Function In our configuration function, we use the method of to configure the route. The first parameter is a relative path. an object that specifies the path to the view (via ). We can call the method multiple times, specifying a different route for each call. Finally, we use the method to indicate that if the user navigates to any other , they should be redirected to the root directory. We are almost there. We just need to make some small changes to the view of the home page. *****************************************************