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:
15
src/app/app.component.ts
Normal file
15
src/app/app.component.ts
Normal 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
12
src/app/app.module.ts
Normal 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
4
src/app/main.ts
Normal 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
11
src/index.html
Normal 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>
|
||||
Reference in New Issue
Block a user