mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: correct import path and self-closing tag in ng-content example
This commit is contained in:
parent
4b871b139b
commit
6a2f4a88de
1 changed files with 2 additions and 2 deletions
|
|
@ -20,14 +20,14 @@ export class BaseButton {}
|
|||
```angular-ts
|
||||
// ./app.component.ts
|
||||
import { Component } from '@angular/core';
|
||||
import { BaseButton } from './base-button/base-button.component.ts';
|
||||
import { BaseButton } from './base-button/base-button.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
imports: [BaseButton],
|
||||
template: `
|
||||
<button baseButton>
|
||||
Next <span class="icon arrow-right" />
|
||||
Next <span class="icon arrow-right"></span>
|
||||
</button>
|
||||
`,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue