refactor(platform-browser): move platform-browser/animations to animations/browser (#15043)

This commit is contained in:
Matias Niemelä
2017-02-28 17:49:37 -08:00
committed by Chuck Jazdzewski
parent 75147ff008
commit 195b863ea4
58 changed files with 210 additions and 84 deletions

View File

@ -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
*/