docs(common): fix selector field in NgIfAs example component (#35854)
PR Close #35854
This commit is contained in:
parent
655da32837
commit
7c3c8d6d10
|
@ -61,8 +61,8 @@ describe('ngIf', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('ng-if-let', () => {
|
describe('ng-if-as', () => {
|
||||||
let comp = 'ng-if-let';
|
let comp = 'ng-if-as';
|
||||||
it('should hide/show content', () => {
|
it('should hide/show content', () => {
|
||||||
browser.get(URL);
|
browser.get(URL);
|
||||||
waitForElement(comp);
|
waitForElement(comp);
|
||||||
|
|
|
@ -75,7 +75,7 @@ export class NgIfThenElse implements OnInit {
|
||||||
|
|
||||||
// #docregion NgIfAs
|
// #docregion NgIfAs
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ng-if-let',
|
selector: 'ng-if-as',
|
||||||
template: `
|
template: `
|
||||||
<button (click)="nextUser()">Next User</button>
|
<button (click)="nextUser()">Next User</button>
|
||||||
<br>
|
<br>
|
||||||
|
@ -112,7 +112,7 @@ export class NgIfAs {
|
||||||
<hr>
|
<hr>
|
||||||
<ng-if-then-else></ng-if-then-else>
|
<ng-if-then-else></ng-if-then-else>
|
||||||
<hr>
|
<hr>
|
||||||
<ng-if-let></ng-if-let>
|
<ng-if-as></ng-if-as>
|
||||||
<hr>
|
<hr>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue