Skip to content

Instantly share code, notes, and snippets.

@petermikitsh
Created March 26, 2020 20:18
Show Gist options
  • Save petermikitsh/632fcebe93f48ebfa506d58a7c5a7fa6 to your computer and use it in GitHub Desktop.
Save petermikitsh/632fcebe93f48ebfa506d58a7c5a7fa6 to your computer and use it in GitHub Desktop.
Angular 8
<!DOCTYPE html>
<html>
<head>
<title>Angular 8</title>
</head>
<body>
<app-root></app-root>
<script src="https://unpkg.com/[email protected]/Reflect.js"></script>
<script src="https://unpkg.com/[email protected]/dist/zone.js"></script>
<script src="https://unpkg.com/@reactivex/[email protected]/dist/global/rxjs.umd.js"></script>
<script src="https://unpkg.com/@angular/[email protected]/bundles/core.umd.js"></script>
<script src="https://unpkg.com/@angular/[email protected]/bundles/common.umd.js"></script>
<script src="https://unpkg.com/@angular/[email protected]/bundles/compiler.umd.js"></script>
<script src="https://unpkg.com/@angular/[email protected]/bundles/platform-browser.umd.js"></script>
<script src="https://unpkg.com/@angular/[email protected]/bundles/platform-browser-dynamic.umd.js"></script>
<script>
const AppComponent = ng.core.Component({
selector: "app-root",
template: "<h1>Hello World</h1>"
})(class AppComponent {});
const AppModule = ng.core.NgModule({
declarations: [AppComponent],
imports: [ng.platformBrowser.BrowserModule],
bootstrap: [AppComponent]
})(class AppModule {});
ng.platformBrowserDynamic
.platformBrowserDynamic()
.bootstrapModule(AppModule);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment