Browse Source

Add empty front page with just a header

Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
master
Gergely Polonkai 5 years ago
parent
commit
4db5923857
  1. 2
      .gitignore
  2. 1
      app/app.component.html
  3. 7
      app/app.component.ts
  4. 11
      app/app.module.ts
  5. 6
      app/main.ts
  6. 27
      index.html
  7. 0
      styles.css

2
.gitignore

@ -1,3 +1,5 @@
/typings/
/node_modules/
/npm-debug.log
/app/*.js
/app/*.js.map

1
app/app.component.html

@ -0,0 +1 @@
<h1>Hello!</h1>

7
app/app.component.ts

@ -0,0 +1,7 @@
import { Component } from "@angular/core";
@Component({
selector: "duckbook-front",
templateUrl: "/app/app.component.html"
})
export class AppComponent {}

11
app/app.module.ts

@ -0,0 +1,11 @@
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "./app.component";
@NgModule({
imports: [ BrowserModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule {}

6
app/main.ts

@ -0,0 +1,6 @@
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
import { AppModule } from "./app.module";
const platform = platformBrowserDynamic();
platform.bootstrapModule(AppModule);

27
index.html

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<title>Angular 2 QuickStart</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<!-- 1. Load libraries -->
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
<script>
System.import('app').catch(function(err){ console.error(err); });
</script>
</head>
<!-- 3. Display the application -->
<body>
<duckbook-front>Loading…</duckbook-front>
</body>
</html>

0
styles.css

Loading…
Cancel
Save