What is the use of 'schemas: [ NO_ERRORS_SCHEMA ]' in NgModule block in app.module.ts?


#1

Hi,

I have searched for need and use of schemas declaration in NgModule block which is preconfigured in nativescript with angular app. But i don’t get any proper solutions on this.

Like,
@NgModule({

schemas: [
NO_ERRORS_SCHEMA
]
})

So please help me to understand in what situation, I need to go for that schemas declaration.

Thank you for reading, looking forward to reading your responses!


#2

passing NO_ERRORS_SCHEMA tells the compiler not to error on unknown elements and attributes,

Is it too late to answer ? :slight_smile:


#3

Got it @mayur. Any specific documents links are avail about this?