🅷.
Size: a a a
🅷.
R
DT
И
DT
K✔
src
/app
/app.module
app.component
core/
core.module
material
.module
controls
/button.component
button
.component
и material
.module
внесены в core
.module
, который в свою очередь внесен в app
.module
. В app
.component
я добавляю селектор button
.component
- его не видно. В чем проблема? Ошибок нет.K✔
src
/app
/app.module
app.component
core/
core.module
material
.module
controls
/button.component
button
.component
и material
.module
внесены в core
.module
, который в свою очередь внесен в app
.module
. В app
.component
я добавляю селектор button
.component
- его не видно. В чем проблема? Ошибок нет.import {
NgModule
} from "@angular/core";
import {
ButtonComponent
} from "./controls/button/
button.component
";
@NgModule({
declarations:
[ButtonComponent
],
imports:
[MaterialModule
],
providers: [
],
entryComponents
: [
],
exports:
[ButtonComponent
,MaterialModule
]
})
export class
CoreModule
{
import {
NgModule
} from "@angular/core";
//
...
import {
AppComponent
} from "./app.component";
import {
CoreModule
} from "./core/
core.module
";
@NgModule({
declarations:
[AppComponent
],
imports: [
// …
CoreModule
],
providers: [],
bootstrap: [
AppComponent
]})
export class
AppModule
{ }
GG
Р
Р
K✔
src
/app
/app.module
app.component
core/
core.module
material
.module
controls
/button.component
button
.component
и material
.module
внесены в core
.module
, который в свою очередь внесен в app
.module
. В app
.component
я добавляю селектор button
.component
- его не видно. В чем проблема? Ошибок нет.npm
start
набрал и он увидел компонент.R
R
K✔
npm
start
набрал и он увидел компонент.npm
start
- работает. Сохраняю - частично пересобирается, браузёр релоадится, и компонент опять пропадает. Что за жесть? Angular 8.2.1, Ivy enabledEK
GG
GG
GG
R
V