Question: import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { WarningMessageComponent } from './warning-message/warning-message.component' @NgModule({

import { NgModule } from '@angular/core';

import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';

import { WarningMessageComponent } from './warning-message/warning-message.component'

@NgModule({

declarations: [

AppComponent,

WarningMessageComponent

],

imports: [

BrowserModule

],

providers: [],

bootstrap: [AppComponent]

})

export class AppModule { }

Output

{ "resource": "/c:/Users/MobileTOS/ITb/mean-app/module7/src/app/app.module.ts", "owner": "typescript", "code": "2307", "severity": 8, "message": "Cannot find module './warning-message/warning-message.component'.", "source": "ts", "startLineNumber": 4, "startColumn": 41, "endLineNumber": 4, "endColumn": 86 }

Please fix this code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!