Primeiro commit do projeto Angular
This commit is contained in:
Generated
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
import { mergeApplicationConfig, ApplicationConfig } from '@angular/core';
|
||||
import { provideServerRendering } from '@angular/ssr';
|
||||
import { appConfig } from './app.config';
|
||||
|
||||
const serverConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
provideServerRendering()
|
||||
]
|
||||
};
|
||||
|
||||
export const config = mergeApplicationConfig(appConfig, serverConfig);
|
||||
Generated
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
import { BootstrapContext, bootstrapApplication } from '@angular/platform-browser';
|
||||
import { <%= appComponentName %> } from '<%= appComponentPath %>';
|
||||
import { config } from './app/app.config.server';
|
||||
|
||||
const bootstrap = (context: BootstrapContext) =>
|
||||
bootstrapApplication(<%= appComponentName %>, config, context);
|
||||
|
||||
export default bootstrap;
|
||||
Reference in New Issue
Block a user