question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output a version number

See original GitHub issue

Hi.

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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
brentonklassencommented, Nov 21, 2017

Why was this closed? I want to be able to view the version at runtime.

2reactions
fmorrisocommented, Oct 16, 2016

+1 for both a command-line as well as a run-time API to get major, minor and full “version” information.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found