I've been encountering a TypeError while trying to implement this angular code. The error seems to be generated around Class({constructor: function() {}}), but I'm not exactly sure why. Any help on this would be greatly appreciated.
import "hello_angular/polyfills";
import { Component, NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { FormsModule } from "@angular/forms";
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
var CustomerSearchComponent = Component({
selector: "shine-customer-search",
template: '\
<header> \
<h1 class="h2">Customer Search</h1> \
</header> \
'
}).Class({
constructor: function() {
}
});
var CustomerAppModule = NgModule({
imports: [ BrowserModule, FormsModule ],
declarations: [ CustomerSearchComponent ],
bootstrap: [ CustomerSearchComponent ]
})
.Class({
constructor: function() {}
});