https://github.com/angular/angular
Raw File
Tip revision: d10f143b1af8213870de4560da3c1ce6b8c3c1d2 authored by Andrew Kushnir on 20 October 2021, 16:42:14 UTC
release: cut the v12.2.11 release (#43909)
Tip revision: d10f143
app.ts
import {Component, NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {ServerModule} from '@angular/platform-server';
import {Lib2Module} from 'lib2_built';

@Component({
  selector: 'test-app',
  template: '<test-cmp></test-cmp>',
})
export class TestApp {}

@NgModule({
  declarations: [TestApp],
  bootstrap: [TestApp],
  imports: [
    Lib2Module,
    BrowserModule.withServerTransition({appId: 'appId'}),
    ServerModule,
  ],
})
export class AppModule {}
back to top