refactor(platform-browser): move platform-browser/animations to animations/browser (#15043)
This commit is contained in:

committed by
Chuck Jazdzewski

parent
75147ff008
commit
195b863ea4
@ -12,7 +12,21 @@
|
||||
* Entry point for all public APIs of the animation package.
|
||||
*/
|
||||
|
||||
import {Version} from '@angular/core';
|
||||
/**
|
||||
* @whatItDoes Represents the version of angular/animations
|
||||
*
|
||||
* @stable
|
||||
*/
|
||||
export class Version {
|
||||
constructor(public full: string) {}
|
||||
|
||||
get major(): string { return this.full.split('.')[0]; }
|
||||
|
||||
get minor(): string { return this.full.split('.')[1]; }
|
||||
|
||||
get patch(): string { return this.full.split('.').slice(2).join('.'); }
|
||||
}
|
||||
|
||||
/**
|
||||
* @stable
|
||||
*/
|
||||
|
Reference in New Issue
Block a user