Skip to content

Commit 67fcacc

Browse files
committed
Finished AoT hello-world.
1 parent d6077a1 commit 67fcacc

24 files changed

Lines changed: 373 additions & 399 deletions

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ with.
1010

1111
## My JavaScript Demos - I Love JavaScript!
1212

13+
* [Hello World With Webpack 4.17.2 And Angular 6.1.7 And Ahead Of Time (AoT) Compiling](http://bennadel.github.io/JavaScript-Demos/demos/webpack4-angular6-aot/)
1314
* [Defining Dynamic AJAX-Driven Service Providers Using APP_INITIALIZER In Angular 6.1.4](http://bennadel.github.io/JavaScript-Demos/demos/app-initializer-angular6/)
1415
* [Using Background-Attachment CSS To Create A Sticky IFrame Advertising Background In JavaScript](http://bennadel.github.io/JavaScript-Demos/demos/iframe-sticky-background/)
1516
* [Using CSS Custom Properties To Theme Components In Angular 6.1.3](http://bennadel.github.io/JavaScript-Demos/demos/theming-css-custom-properties-angular6/)

‎demos/webpack4-angular6-aot/app/app.component.htm‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11

22
<p>
3-
Hello world, <strong>Angular 6</strong> with <strong>Webpack 4</strong>.
3+
Hello world, <strong>Angular 6</strong> with <strong>Webpack 4</strong> and
4+
<strong>AoT</strong> compiling.
5+
</p>
6+
7+
<p>
8+
Created at epoch: <code>{{ createdAt }}</code>.
49
</p>
510

611
<p>

‎demos/webpack4-angular6-aot/app/app.component.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ import { Component } from "@angular/core";
1212
})
1313
export class AppComponent {
1414

15+
public createdAt: number;
16+
1517
// I initialize the app component.
1618
constructor() {
17-
// ...
19+
20+
this.createdAt = Date.now();
21+
1822
}
1923

2024
}

‎demos/webpack4-angular6-aot/build/main.9d01e3684fd8a296a019.js‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎demos/webpack4-angular6-aot/build/main.9d01e3684fd8a296a019.js.map‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎demos/webpack4-angular6-aot/build/main.b840db14d6d36cb671bd.js‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)