In this article, we will follow a step-by-step approach to deploy an Angular application to a GitHub. We will create a project using Angular CLI and then deploy that to GitHub. Let us get started. Step 1 To create a project using Angular CLI. Run the command: ng new demo You need to make sure that Angular CLI is installed globally on your machine. Step 2 Change directory to demo and open project in VS Code or any other IDE of your choice. Modify AppComponent to add, subtract, multiply, and divide two numbers as shown in the below listing: As you can see, that AppComponent is very simple and it contains code to perform basic calculator operations. Next, modify the AppComponent template Like the component class template, it is also very simple. It uses: ngModel for two way data binding between input controls and properties event binding to call a function on click of the button interpolation to display the result Step 3 Before we publish this application to GitHub, let us run it locally....


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

angular,github