Angular 我如何从马特·刘易斯的角度日历开始

Angular 我如何从马特·刘易斯的角度日历开始,angular,calendar,Angular,Calendar,有人能帮我在我的页面上查看日历月吗 我遵循了这个github页面()上的步骤,但页面上没有显示任何内容。我对angular 2很陌生,对它了解不多 这是从我的应用程序中截取的代码: app.module.ts代码 这是app.component.html代码: 这是日历的标题 这是一个日历日 我在网站上没有看到任何变化,也没有显示日历。如果有人能写一个简单的代码来告诉我如何开始,我会非常感激 谢谢 更新:这些是我在运行它之后得到的控制台错误 ng:///AppModule

有人能帮我在我的页面上查看日历月吗

我遵循了这个github页面()上的步骤,但页面上没有显示任何内容。我对angular 2很陌生,对它了解不多

这是从我的应用程序中截取的代码:

  • app.module.ts代码
  • 这是app.component.html代码:
这是日历的标题


这是一个日历日
  • 我在网站上没有看到任何变化,也没有显示日历。如果有人能写一个简单的代码来告诉我如何开始,我会非常感激
谢谢

  • 更新:这些是我在运行它之后得到的控制台错误
ng:///AppModule/AppComponent.ngfactory.js:23错误上下文 DebugContext\uView\u AppComponent\u 0@ ng:///AppModule/AppComponent.ngfactory.js:23 vendor.bundle.js:3256

Angular正在开发模式下运行。调用enableProdMode()以 启用生产模式。 ng:///AppModule/AppComponent.ngfactory.js:23

错误类型错误:不能 读取未定义的属性“isPast” 在Object.eval[作为updateRenderer](ng:///AppModule/AppComponent.ngfactory.js:163) 在Object.debugUpdateRenderer[作为updateRenderer](vendor.bundle.js:13054) 在checkAndUpdateView(vendor.bundle.js:12359) 在callViewAction(vendor.bundle.js:12717) 在execComponentViewsAction(vendor.bundle.js:12649) 在checkAndUpdateView(vendor.bundle.js:12360) 位于callWithDebugContext(vendor.bundle.js:13416) 在Object.debugCheckAndUpdateView[作为checkAndUpdateView](vendor.bundle.js:12956) 在ViewRef_u2;.detectChanges(vendor.bundle.js:10428) 在vendor.bundle.js:5285 View_AppComponent_0@ng:///AppModule/AppComponent.ngfactory.js:23 ng:///AppModule/AppComponent.ngfactory.js:23错误上下文 DebugContext\uView\u AppComponent\u 0@ ng:///AppModule/AppComponent.ngfactory.js:23


你检查过了吗?你的浏览器控制台有错误吗?@yurzui我确实检查过了,但对我的案子没有帮助。我明白了。你是如何构建你的应用程序的?@Adyson是的,有4个控制台错误,我将更新我的帖子以包含它们。你检查了吗?你的浏览器控制台有错误吗?@yurzui我确实检查过了,但对我的案子没有帮助。我明白了。你是如何构建你的应用程序的?@Adyson是的,有4个控制台错误,我将更新我的帖子以包含它们。
import { BrowserModule } from '@angular/platform-browser';
import { Component, NgModule} from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { CalendarModule } from 'angular-calendar';

import { AppComponent } from './app.component';
import { FilterBarComponent } from './filter-bar/filter-bar.component';
import { CalendarComp } from './calendar/calendar.component';
import { InputFormComponent } from './input-form/input-form.component';

@NgModule({
  declarations: [
    AppComponent,
    FilterBarComponent,
    CalendarComp,
    InputFormComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    CalendarModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {

}
  <div>
    <mwl-calendar-month-cell>
      <h5>This is a calendar day</h5>
    </mwl-calendar-month-cell>
  </div>
</div>