MOBILE-3947 lint: Fix self-closing tags
parent
b5fe5b3c9d
commit
6c9bc12d34
|
@ -1,5 +1,5 @@
|
|||
<div *ngIf="!loading" @coreShowHideAnimation>
|
||||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
</div>
|
||||
|
||||
<!-- Spinner. -->
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<ion-icon *ngIf="icon" [name]="icon" aria-hidden="true" />
|
||||
</div>
|
||||
|
||||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
</ion-select>
|
||||
|
||||
<ion-button *ngIf="interface === 'modal'" aria-haspopup="listbox" [attr.aria-controls]="listboxId" [attr.aria-owns]="listboxId"
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
[attr.aria-controls]="uniqueId">
|
||||
<ion-icon [name]="icon" slot="icon-only" aria-hidden="true" />
|
||||
</ion-button>
|
||||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!-- Content to display if no dynamic component. -->
|
||||
<ng-content *ngIf="!instance"></ng-content>
|
||||
<ng-content *ngIf="!instance" />
|
||||
|
||||
<!-- Container of the dynamic component -->
|
||||
<ng-container #dynamicComponent />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<img *ngIf="image && !icon" [src]="image" role="presentation" alt="">
|
||||
<ion-icon *ngIf="icon" [name]="icon" aria-hidden="true" />
|
||||
<p *ngIf="message">{{ message }}</p>
|
||||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
<ion-spinner color="primary" aria-hidden="true" />
|
||||
<p class="core-loading-message" *ngIf="message" role="status">{{message}}</p>
|
||||
</div>
|
||||
<ng-content *ngIf="loaded" @coreShowHideAnimation></ng-content>
|
||||
<ng-content *ngIf="loaded" @coreShowHideAnimation />
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
<ion-icon *ngIf="coreMarkRequired" class="core-input-required-asterisk" name="fas-circle-exclamation" color="danger"
|
||||
[attr.aria-label]="requiredLabel" />
|
||||
|
|
|
@ -52,7 +52,7 @@ const BUTTON_HIDDEN_CLASS = 'core-navbar-button-hidden';
|
|||
*/
|
||||
@Component({
|
||||
selector: 'core-navbar-buttons',
|
||||
template: '<ng-content></ng-content><template #contextMenuContainer>-</template>',
|
||||
template: '<ng-content/><template #contextMenuContainer>-</template>',
|
||||
styleUrls: ['navbar-buttons.scss'],
|
||||
})
|
||||
export class CoreNavBarButtonsComponent implements OnInit, OnDestroy {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ion-content class="menu">
|
||||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
</ion-content>
|
||||
<ion-router-outlet class="content-outlet" />
|
||||
<core-empty-box class="content-placeholder" icon="fas-circle-arrow-left" [message]="placeholderText | translate" [flipIconRtl]="true" />
|
||||
|
|
|
@ -33,5 +33,5 @@
|
|||
</ng-container>
|
||||
</ion-tab-bar>
|
||||
<div class="core-tabs-content-container" #originalTabs>
|
||||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
</div>
|
||||
|
|
|
@ -26,4 +26,4 @@
|
|||
<span *ngIf="checkOnline && isOnline()" class="contact-status online" role="status" [attr.aria-label]="'core.online' | translate">
|
||||
</span>
|
||||
|
||||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<ion-icon name="fas-lock" *ngIf="module.visible === 0 || module.uservisible === false"
|
||||
[attr.aria-label]="'core.restricted' | translate" />
|
||||
</h1>
|
||||
<ng-content select="[title]"></ng-content>
|
||||
<ng-content select="[title]" />
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
|
@ -37,10 +37,10 @@
|
|||
<core-format-text [text]="description" [component]="component" [componentId]="componentId" contextLevel="module"
|
||||
[contextInstanceId]="module.id" [courseId]="courseId" [collapsible-item]="expandDescription ? null : ''" />
|
||||
</div>
|
||||
<ng-content select="[description]"></ng-content>
|
||||
<ng-content select="[description]" />
|
||||
</div>
|
||||
|
||||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
|
||||
<!-- Activity has something offline. -->
|
||||
<ion-card class="core-warning-card" *ngIf="hasDataToSync">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<ion-icon name="fas-triangle-exclamation" slot="start" aria-hidden="true" />
|
||||
<ion-label>
|
||||
<p>
|
||||
<ng-content></ng-content>
|
||||
<ng-content />
|
||||
</p>
|
||||
<ion-button *ngIf="canContactSupport" fill="outline" color="medium" (click)="contactSupport()">
|
||||
{{ 'core.contactsupport' | translate }}
|
||||
|
|
|
@ -26,19 +26,19 @@
|
|||
<ng-container *ngFor="let item of items">
|
||||
<ng-container [ngSwitch]="item">
|
||||
<ng-container *ngSwitchCase="'LIST_OF_COURSE'">
|
||||
<ng-template *ngTemplateOutlet="allCourseList"></ng-template>
|
||||
<ng-template *ngTemplateOutlet="allCourseList" />
|
||||
</ng-container>
|
||||
<ng-container *ngSwitchCase="'LIST_OF_CATEGORIES'">
|
||||
<ng-template *ngTemplateOutlet="categories"></ng-template>
|
||||
<ng-template *ngTemplateOutlet="categories" />
|
||||
</ng-container>
|
||||
<ng-container *ngSwitchCase="'COURSE_SEARCH_BOX'">
|
||||
<ng-template *ngTemplateOutlet="courseSearch"></ng-template>
|
||||
<ng-template *ngTemplateOutlet="courseSearch" />
|
||||
</ng-container>
|
||||
<ng-container *ngSwitchCase="'ENROLLED_COURSES'">
|
||||
<ng-template *ngTemplateOutlet="enrolledCourseList"></ng-template>
|
||||
<ng-template *ngTemplateOutlet="enrolledCourseList" />
|
||||
</ng-container>
|
||||
<ng-container *ngSwitchCase="'NEWS_ITEMS'">
|
||||
<ng-template *ngTemplateOutlet="news"></ng-template>
|
||||
<ng-template *ngTemplateOutlet="news" />
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
|
|
Loading…
Reference in New Issue