Output a version number
See original GitHub issueHi.
In AngularJS 1.x, console.log(angular.version);
to output the following.
{
full: "1.3.x",
major: 1,
minor: 3,
dot: x,
codeName: "codeName"
}
I want you to adopt also in Angular 2 this feature for utility development. For example,
import * as angular2 from 'angular2/angular2';
console.log(angular2.version);
{
full: "2.0.0-alpha.n",
major: 2,
minor: 0,
dot: 0,
codeName: "codeName"
}
Thanks.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to get a version number from an output - Stack Overflow
$ver > $fname simply writes the version number to the output file. Note that PowerShell creates UTF-16 LE-encoded files when you use output...
Read more >Output only the version number with poetry version #1407
Running poetry version outputs something to the nature of Project (<name>) version is 0.1.0 . There seems to be no way to only...
Read more >Compare two Version numbers - GeeksforGeeks
A version number looks like a.b.c.d, where a, b, etc are numbers, so the version number is a string in which numbers are...
Read more >How to match version number from output - Unix & Linux Stack ...
If the package is already installed, you can use the --queryformat argument of rpm to only print the version number, and then use...
Read more >Version Class (System) | Microsoft Learn
Represents the version number of an assembly, operating system, or the common language runtime. This class cannot be inherited.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Why was this closed? I want to be able to view the version at runtime.
+1 for both a command-line as well as a run-time API to get major, minor and full “version” information.