Skip to content

Commit c17440d

Browse files
committed
fix(angular-closure-*): switch to simple optimization
1 parent e4ca071 commit c17440d

File tree

5 files changed

+13
-23
lines changed

5 files changed

+13
-23
lines changed

frameworks/keyed/angular-closure-nozone/closure.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--compilation_level=ADVANCED_OPTIMIZATIONS
2-
--language_out=ES5
1+
--compilation_level=SIMPLE_OPTIMIZATIONS
2+
--language_out=ECMASCRIPT_2015
33
--output_wrapper="(function() {%output%}).call(this);"
44
--js_output_file=dist/bundle.js
55
--output_manifest=dist/manifest.MF

frameworks/keyed/angular-closure-nozone/src/app.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApplicationRef, Component, NgModule, VERSION } from '@angular/core';
1+
import { ApplicationRef, Component, NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33

44
interface Data {
@@ -70,9 +70,7 @@ export class AppComponent {
7070
id: number = 1;
7171
backup: Array<Data> = undefined;
7272

73-
constructor(private appRef: ApplicationRef) {
74-
console.info(VERSION.full);
75-
}
73+
constructor(private appRef: ApplicationRef) { }
7674

7775
buildData(count: number = 1000): Array<Data> {
7876
var adjectives = ['pretty', 'large', 'big', 'small', 'tall', 'short', 'long', 'handsome', 'plain', 'quaint', 'clean', 'elegant', 'easy', 'angry', 'crazy', 'helpful', 'mushy', 'odd', 'unsightly', 'adorable', 'important', 'inexpensive', 'cheap', 'expensive', 'fancy'];

frameworks/keyed/angular-closure/closure.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
--compilation_level=ADVANCED_OPTIMIZATIONS
1+
--compilation_level=SIMPLE_OPTIMIZATIONS
2+
--language_out=ECMASCRIPT_2015
23
--language_out=ES5
34
--output_wrapper="(function() {%output%}).call(this);"
45
--js_output_file=dist/bundle.js

frameworks/keyed/angular-closure/src/app.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, NgModule, VERSION } from '@angular/core';
1+
import { Component, NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33

44
interface Data {
@@ -57,10 +57,6 @@ export class AppComponent {
5757
id: number = 1;
5858
backup: Array<Data> = undefined;
5959

60-
constructor() {
61-
console.info(VERSION.full);
62-
}
63-
6460
buildData(count: number = 1000): Array<Data> {
6561
var adjectives = ["pretty", "large", "big", "small", "tall", "short", "long", "handsome", "plain", "quaint", "clean", "elegant", "easy", "angry", "crazy", "helpful", "mushy", "odd", "unsightly", "adorable", "important", "inexpensive", "cheap", "expensive", "fancy"];
6662
var colours = ["red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black", "orange"];

frameworks/keyed/angular-nozone/src/app/app.component.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
import { Component, VERSION, AfterViewChecked} from '@angular/core';
1+
import { Component } from '@angular/core';
22
import { ɵmarkDirty } from '@angular/core';
3-
import { ɵdetectChanges } from '@angular/core';
43

54
interface Data {
6-
id: number;
7-
label: string;
5+
id: number;
6+
label: string;
87
}
98

109
@Component({
11-
selector: 'app-root',
12-
templateUrl: './app.component.html',
13-
styles: []
10+
selector: 'app-root',
11+
templateUrl: './app.component.html',
12+
styles: []
1413
})
1514
export class AppComponent {
1615
data: Array<Data> = [];
@@ -19,10 +18,6 @@ export class AppComponent {
1918
backup: Array<Data> = undefined;
2019
version: string;
2120

22-
constructor() {
23-
this.version = VERSION.full;
24-
}
25-
2621
buildData(count: number = 1000): Array<Data> {
2722
var adjectives = ["pretty", "large", "big", "small", "tall", "short", "long", "handsome", "plain", "quaint", "clean", "elegant", "easy", "angry", "crazy", "helpful", "mushy", "odd", "unsightly", "adorable", "important", "inexpensive", "cheap", "expensive", "fancy"];
2823
var colours = ["red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black", "orange"];

0 commit comments

Comments
 (0)