小编Eri*_*tti的帖子

TypeError:guard不是函数

我不知道是否让一些细节通过,或者我做错了什么,但我找不到导致错误的原因.我的目标是做一些不断检查用户每次访问页面内路由时是否登录的内容.我使用Angular 5.

App.module:

import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { LoginComponent } from './pages/autenticacao/login.component';
import { AuthService } from './auth/auth.service';
import { RoutesInterceptor } from './auth/routes.interceptor';

import * as $ from 'jquery';

@NgModule({
  declarations: [ AppComponent, LoginComponent ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    AppRoutingModule,

  ],
  bootstrap: [AppComponent],
  providers: [ AuthService, RoutesInterceptor, ],
})
export class AppModule …
Run Code Online (Sandbox Code Playgroud)

typescript angular

13
推荐指数
2
解决办法
8085
查看次数

为 Outlined 更改 mat-icon 中的主题

我使用<mat-icon>person</mat-icon>并有结果: 在此处输入图片说明

我需要主题概述图标: 在此处输入图片说明

怎么办?

图标的重要性: <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

material-design angular-material angular

7
推荐指数
2
解决办法
4109
查看次数