//On the angular.json file add the configurations "sslKey", "sslCert" and "ssl" with the value "true"
//Don't forget to create a folder "ssl" on the root of your project, and add the certicate (.crt) and key (.key)
"serve": {
"options": {
"sslKey": "./ssl/server.key",
"sslCert": "./ssl/server.crt",
"ssl": true
},
...
}
ng serve -o --ssl true --ssl-key [PATH_TO_KEY] --ssl-cert [PATH_TO_CRT]