1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

stub out angular app with webpack

This commit is contained in:
Kyle Spearrin
2018-01-16 14:48:34 -05:00
parent 16b7607160
commit a7994f7ebc
12 changed files with 315 additions and 0 deletions

15
src/app/app.component.ts Normal file
View File

@@ -0,0 +1,15 @@
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
styles: [''],
template: `
<div class="jumbotron text-center">
<h1>The App Lives!</h1>
<p>{{ message }}</p>
</div>
`,
})
export class AppComponent {
message = 'This is the sample message.';
}

12
src/app/app.module.ts Normal file
View File

@@ -0,0 +1,12 @@
import 'zone.js/dist/zone';
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 { }

4
src/app/main.ts Normal file
View File

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

11
src/index.html Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bitwarden</title>
</head>
<body class="container">
<my-app></my-app>
</body>
</html>