Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
29
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/app/app.component.spec.ts.template
generated
vendored
Executable file
29
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/app/app.component.spec.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,29 @@
|
|||
import { TestBed } from '@angular/core/testing';
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
describe('AppComponent', () => {
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [AppComponent],
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
it('should create the app', () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
const app = fixture.componentInstance;
|
||||
expect(app).toBeTruthy();
|
||||
});
|
||||
|
||||
it(`should have the '<%= name %>' title`, () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
const app = fixture.componentInstance;
|
||||
expect(app.title).toEqual('<%= name %>');
|
||||
});
|
||||
|
||||
it('should render title', () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
fixture.detectChanges();
|
||||
const compiled = fixture.nativeElement as HTMLElement;
|
||||
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, <%= name %>');
|
||||
});
|
||||
});
|
21
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/app/app.component.ts.template
generated
vendored
Executable file
21
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/app/app.component.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,21 @@
|
|||
import { Component } from '@angular/core';<% if(routing) { %>
|
||||
import { RouterOutlet } from '@angular/router';<% } %>
|
||||
|
||||
@Component({
|
||||
selector: '<%= selector %>',
|
||||
standalone: true,
|
||||
imports: [<% if(routing) { %>RouterOutlet<% } %>],<% if(inlineTemplate) { %>
|
||||
template: `
|
||||
<h1>Welcome to {{title}}!</h1>
|
||||
|
||||
<% if (routing) {
|
||||
%><router-outlet /><%
|
||||
} %>
|
||||
`,<% } else { %>
|
||||
templateUrl: './app.component.html',<% } if(inlineStyle) { %>
|
||||
styles: [],<% } else { %>
|
||||
styleUrl: './app.component.<%= style %>'<% } %>
|
||||
})
|
||||
export class AppComponent {
|
||||
title = '<%= name %>';
|
||||
}
|
8
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/app/app.config.ts.template
generated
vendored
Executable file
8
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/app/app.config.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,8 @@
|
|||
import { ApplicationConfig } from '@angular/core';<% if (routing) { %>
|
||||
import { provideRouter } from '@angular/router';
|
||||
|
||||
import { routes } from './app.routes';<% } %>
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [<% if (routing) { %>provideRouter(routes)<% } %>]
|
||||
};
|
3
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/app/app.routes.ts.template
generated
vendored
Executable file
3
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/app/app.routes.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,3 @@
|
|||
import { Routes } from '@angular/router';
|
||||
|
||||
export const routes: Routes = [];
|
6
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/main.ts.template
generated
vendored
Executable file
6
my-app/node_modules/@schematics/angular/application/files/standalone-files/src/main.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,6 @@
|
|||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { appConfig } from './app/app.config';
|
||||
import { AppComponent } from './app/app.component';
|
||||
|
||||
bootstrapApplication(AppComponent, appConfig)
|
||||
.catch((err) => console.error(err));
|
Loading…
Add table
Add a link
Reference in a new issue