Successfully created my first Angular JS app
- visit https://sunilale0.github.io/angular-todo-and-routing/ for live deployment
- add todo
- update todo
- delete todo
- check console to if the features are working. I am using https://jsonplaceholder.typicode.com/todos, so some features don't work for new user inputs
- Step 1:
ng build --prod --output-path docs --base-href /<project_name>/
- Step 2: make a copy of
docs/index.html
and name it404.html
. save it in the same folderdocs/
so it has both filesindex.html
and404.html
Here is the link to the guide: https://angular.io/guide/deployment#deploy-to-github-pages
There is Angular-cli-ghpages that can automatically do all of these for you. It creates another branch called gh-pages
like by react-gh-pages
. Set gh-pages
as the source folder to deploy.
here is the link: https://github.com/angular-schule/angular-cli-ghpages