私は角の初心者ですが、1点は分かりません。次のコードでは、BrowserModule
の2つのインポートがあります。 1つは第2行にあり、もう1つは@ngmodule
にあります。では、それぞれの役割との違いは何ですか?角2度輸入の差額
import { NgModule } from '@angular/core';
**import { BrowserModule } from '@angular/platform-browser';**
import { AppComponent } from './app.component';
@NgModule({
**imports: [ BrowserModule ],**
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
私は」あなたの質問を編集しました - 「AngularJS」はv1を、「Angular」は他のすべてのバージョンを指します – SomeKittens