2016-11-30 13:52:08 -08:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-04-05 10:16:31 +01:00
|
|
|
* @description Represents the version of Angular
|
2016-11-30 13:52:08 -08:00
|
|
|
*
|
2018-04-05 22:31:44 +01:00
|
|
|
*
|
2016-11-30 13:52:08 -08:00
|
|
|
*/
|
|
|
|
export class Version {
|
2017-09-08 18:06:33 -07:00
|
|
|
public readonly major: string;
|
|
|
|
public readonly minor: string;
|
|
|
|
public readonly patch: string;
|
2016-11-30 13:52:08 -08:00
|
|
|
|
2017-09-08 18:06:33 -07:00
|
|
|
constructor(public full: string) {
|
|
|
|
this.major = full.split('.')[0];
|
|
|
|
this.minor = full.split('.')[1];
|
|
|
|
this.patch = full.split('.').slice(2).join('.');
|
|
|
|
}
|
2016-12-06 16:21:07 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
export const VERSION = new Version('0.0.0-PLACEHOLDER');
|