Skip to main content

Angular

Whatโ€‹

Display the currently active Angular CLI version.

Sample Configurationโ€‹

{
"type": "angular",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#1976d2",
"template": " \uE753 {{ .Full }} "
}

Propertiesโ€‹

NameTypeDescription
home_enabledbooleandisplay the segment in the HOME folder or not - defaults to false
fetch_versionbooleanfetch the active version or not; useful if all you need is an icon indicating ng
display_modestring
  • always: the segment is always displayed
  • files: the segment is only displayed when angular.json file is present (default)
version_url_templatestringa go text/template template that creates the URL of the version info / release notes

Template (info)โ€‹

default template
{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}

Propertiesโ€‹

NameTypeDescription
.Fullstringthe full version
.Majorstringmajor number
.Minorstringminor number
.Patchstringpatch number
.URLstringURL of the version info / release notes
.Errorstringerror encountered when fetching the version string