Skip to content

Commit

Permalink
chore(config): bump angular to v12
Browse files Browse the repository at this point in the history
  • Loading branch information
Maple13 authored and pubuzhixing8 committed Sep 27, 2021
1 parent c70d5ab commit 3d3d741
Show file tree
Hide file tree
Showing 11 changed files with 6,291 additions and 8,202 deletions.
12 changes: 9 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"main": "demo/main.ts",
"polyfills": "demo/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
{
"glob": "favicon.ico",
Expand All @@ -48,7 +47,13 @@
"remark-slate",
"rxjs/internal/scheduler/asap",
"faker"
]
],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand Down Expand Up @@ -78,7 +83,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down
2 changes: 1 addition & 1 deletion demo/app/huge-document/huge-document.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="demo-rich-editor-wrapper single">
<slate-editable class="demo-slate-angular-editor" [editor]="editor" [(ngModel)]="value"
(ngModelChange)="valueChange($event)" [renderElement]="renderElement()">
<ng-template #elementTemplate let-context="context" let-viewContext="viewContext" let-viewContext="viewContext">
<ng-template #elementTemplate let-context="context" let-viewContext="viewContext">
<h1 *ngIf="context.element.type === 'heading-one'" slateElement [context]="context" [viewContext]="viewContext"
[viewContext]="viewContext">
</h1>
Expand Down
2 changes: 1 addition & 1 deletion demo/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.
import 'core-js/features/global-this';

window['global'] = window as any;
Expand Down
2 changes: 1 addition & 1 deletion demo/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
Expand Down
Loading

0 comments on commit 3d3d741

Please sign in to comment.