I have the following code on angular
<div *ngFor="let student of students.controls; let i=index" [formGroupName]="i" [class.active]="student.checked">
<!-- The repeated address template -->
我有一個路線警衛,檢查用戶當前是否登錄: import {Injectable} from "@angular/core"
import {CanActivate} from "@angular/router"
import {Observable} from "rxjs/Observable"
import {UserService} from "./user.service"
@I
可以做這樣的事情 mycomponent.html <div>
<something-content></something-content> <!-- don't know the tag
</div>
其他一些HTML: <app-mycomponent>
some random text
<app-mycomponent>
結果: <div>
some random