当我尝试使用时,我的控制台上出现此错误git pull:
远程:2021 年 8 月 13 日移除了对密码身份验证的支持。请改用个人访问令牌。远程:请参阅https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/了解更多信息。致命:无法访问“...”:请求的 URL 返回错误:403
这很奇怪,因为我两周前只是按照文档在 GitHub 上创建了一个令牌,该令牌将于 2021 年 10 月 26 日星期二到期。为什么今天删除了它?
我想在每次更改路线时更改应用程序的主标题,例如“我的第一个应用程序 - 仪表板”或“我的第一个应用程序 - 统计”
这是我的代码,我使用 Material UI :
默认.component.html:
<div>
<mat-toolbar>
<button mat-icon-button *ngIf="sidenav.mode === 'over'" (click)="sidenav.toggle()">
<mat-icon *ngIf="!sidenav.opened">
menu
</mat-icon>
<mat-icon *ngIf="sidenav.opened">
close
</mat-icon>
</button>
<img class="logo" src=".." alt="logo" />
<h1 class="title">My first application - </h1> // Title
</mat-toolbar>
<mat-sidenav-container>
<mat-sidenav #sidenav="matSidenav">
<app-sidebar></app-sidebar>
</mat-sidenav>
<mat-sidenav-content>
<div class="main">
<router-outlet></router-outlet>
</div>
</mat-sidenav-content>
</mat-sidenav-container>
</div>
Run Code Online (Sandbox Code Playgroud)
默认组件.ts:
import { AfterViewInit, Component, ViewChild } from '@angular/core';
import { BreakpointObserver } from '@angular/cdk/layout';
import { MatSidenav } from '@angular/material/sidenav';
@Component({
selector: 'app-default',
templateUrl: './default.component.html', …Run Code Online (Sandbox Code Playgroud)