Reinstall Angular CLI

Create an Angular Project

Open a command line or terminal or your favorite shell in the root of your Salesforce Project. If you don’t know where this is, in Mavensmate it is displayed on the “Select Project” menu. Get there by going to Project then Open Project.

Project => Open Project

Select Project

Note: This is also the first menu you see when first opening Mavensmate.

Note 2: You can also get here if you are using Visual Studio Code by right clicking a file or folder in root and choosing copy path. And then open your command line and use cd and past the path just remembering to remove the the file or folder you clicked on from the path.

Now that you are in the proper place if your terminal we will create our Angular Project. I’m going to call my project src-ng but you may choose something different.

Create New Angular Project

ng new src-ng

This should so you a list of what is being created and look something like this once it is done:

You see on the first like where it says ** NG Live Development Server is running on http://localhost:4200 ** that means you can now open a web browser to http://localhost:4200 and see your brand new Angular app!

Angular App Live!

Lets change something to make sure it’s working properly.

In your editor go to the src-ng/src/app/app.component.ts and change line 9 from app works to something else: