UNPKG

1.15 kBJavaScriptView Raw
1/**
2 * \@whatItDoes Represents the version of Angular
3 *
4 * \@stable
5 */
6export var Version = (function () {
7 /**
8 * @param {?} full
9 */
10 function Version(full) {
11 this.full = full;
12 }
13 Object.defineProperty(Version.prototype, "major", {
14 /**
15 * @return {?}
16 */
17 get: function () { return this.full.split('.')[0]; },
18 enumerable: true,
19 configurable: true
20 });
21 Object.defineProperty(Version.prototype, "minor", {
22 /**
23 * @return {?}
24 */
25 get: function () { return this.full.split('.')[1]; },
26 enumerable: true,
27 configurable: true
28 });
29 Object.defineProperty(Version.prototype, "patch", {
30 /**
31 * @return {?}
32 */
33 get: function () { return this.full.split('.').slice(2).join('.'); },
34 enumerable: true,
35 configurable: true
36 });
37 return Version;
38}());
39function Version_tsickle_Closure_declarations() {
40 /** @type {?} */
41 Version.prototype.full;
42}
43/**
44 * @stable
45 */
46export var /** @type {?} */ VERSION = new Version('2.4.10');
47//# sourceMappingURL=version.js.map
\No newline at end of file