how to deploy angular to firebase code example

Example 1: how to deploy angular site firebase

In the terminal:
$ ng build --prod
$ npm install -g firebase-tools
$ firebase login
$ firebase init
$ firebase deploy

Example 2: deploying angular app to firebase

{
  "hosting": {
    "public": "dist/your_application_name",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

Example 3: update angular website firebase

$ ng build --prod
$ firebase login
$ firebase deploy