Answer the question
In order to leave comments, you need to log in
Where is the error when creating a component in Angular 2.2?
I want to create a component in Angular 2 (2.2)
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { SpinnerComponent } from './components/spinner';
@NgModule({
declarations: [SpinnerComponent],
imports: [CommonModule],
providers: [],
})
export class SpinnerModule {}
import { ChangeDetectionStrategy, Component } from '@angular/core';
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-spinner',
template: require('./spinner.html'),
})
export class SpinnerComponent {
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question