I have an angular application only - no backend
I want to display my private branch name in my angular application (e.x. myName/myFeature)
I'm using Azure DevOps for deploy my app in the cloud
I searched the web for tutorials\guides but I think I'm missing something.
The best tutorial I've found is this: https://www.taithienbo.com/replacing-variables-in-an-angular-app-using-replace-token-extension/
But still it is not working, it is not displaying the correct branch name.
Code:
component.ts
import {environment} from '../../../../environments/environment'; version: string = environment.version;
component.html
{{version}}
environment.ts
version: '#{Build.BuildNumber}#'
DevOps:
It is displaying the wrong branch name, the upper instead of the bottom: