-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(build): record angular version in the dom #13164
Conversation
Please wrap in object, LGTM otherwise. |
ae5b5e3
to
0d90f8f
Compare
0d90f8f
to
ff9ff05
Compare
have we considered attaching the version info to the root element(s) instead of body? I think it would be useful to clearly see what is/are the application root(s) and in the future if we allow multiple versions of Angular on the same page (like is being proposed for SharePoint), we'd naturally scope the versions to root elements and in that case we'd have various root elements tagged with their corresponding versions. |
|
||
get minor(): string { return this.full.split('.')[1]; } | ||
|
||
get patch(): string { return this.full.split('.')[2]; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intended that patch
will include pre-release identifiers? E.g. for new Version('2.0.0-rc.1')
, I would expect patch
to be '0'
, nit '0-rc.1'
.
cool: sweeet.... Angular 2 Kitchen sink: http://ng2.javascriptninja.io Sean |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.