Skip to content

Commit

Permalink
fix(angular): fix dev mode on angular closure projects
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Jan 25, 2021
1 parent 0dfabb1 commit 68cb3c8
Show file tree
Hide file tree
Showing 19 changed files with 52 additions and 235 deletions.
2 changes: 1 addition & 1 deletion frameworks/keyed/angular-closure-nozone/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>

<head>
<title>Angular</title>
<title>Angular-closure-nozone-keyed</title>
<meta charset="utf-8" />
<link href="/css/currentStyle.css" rel="stylesheet" />
</head>
Expand Down
107 changes: 14 additions & 93 deletions frameworks/keyed/angular-closure-nozone/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frameworks/keyed/angular-closure-nozone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"http-server": "0.12.1",
"rimraf": "3.0.1",
"rollup": "2.13.1",
"rollup-plugin-terser": "6.1.0",
"rollup-plugin-serve": "^1.1.0",
"typescript": "4.0.5"
}
}
6 changes: 3 additions & 3 deletions frameworks/keyed/angular-closure-nozone/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { terser } from 'rollup-plugin-terser';
import serve from 'rollup-plugin-serve';

const plugins = [resolve(), commonjs(), terser()];
const plugins = [resolve(), commonjs(), serve()];

export default {
input: 'tmp/src/main.js',
input: 'tmp/main.js',
output: {
file: 'dist/bundle.js',
format: 'iife',
Expand Down
4 changes: 2 additions & 2 deletions frameworks/keyed/angular-closure-nozone/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AfterViewChecked, ApplicationRef, Component, NgModule, VERSION } from '@angular/core';
import { ApplicationRef, Component, NgModule, VERSION } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

interface Data {
Expand All @@ -13,7 +13,7 @@ interface Data {
<div class="jumbotron">
<div class="row">
<div class="col-md-6">
<h1>Angular keyed (no Zone.js)</h1>
<h1>Angular closure keyed (Zoneless)</h1>
</div>
<div class="col-md-6">
<div class="col-sm-6 smallpad">
Expand Down
2 changes: 1 addition & 1 deletion frameworks/keyed/angular-closure-nozone/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ window['Zone'] = {
}

enableProdMode();
platformBrowser().bootstrapModule(AppModule, { ngZone: 'noop' })
platformBrowser().bootstrapModule(AppModule, { ngZone: 'noop' });
2 changes: 1 addition & 1 deletion frameworks/keyed/angular-closure/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>

<head>
<title>Angular</title>
<title>Angular-closure-keyed</title>
<meta charset="utf-8" />
<link href="/css/currentStyle.css" rel="stylesheet" />
</head>
Expand Down
Loading

0 comments on commit 68cb3c8

Please sign in to comment.