Building the application logic
Now that we have the project structure and manifest configuration completed, we can start building the application logic in the provided code resource file: index.ts
.
This file will be the component's entry point and will be in charge of the control initialization, event handling, and control removal.
How to do it
- From the menu, click on Terminal | New terminal. This action will open the integrated PowerShell console of Visual Studio Code.
- From this integrated console, enter
npm run build
and press Enter. This command will execute the build process of the component, including the manifest configuration. - Using the Explorer pane, expand FontAwesomeComponent and double-click the
index.ts
file to open it. - Enter the following code just below the
export class
sentence:private _URL: string;
- Find the
init
function and enter the following code between the curly brackets:this._URL = context.parameters.FontAwesome_Kit URL.formatted...