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