Turning off Strict Mode in Angular?

33
August 21, 2019, at 02:30 AM

I'm running into this issue and I'd like to turn off strict mode to get around it.

I've modified tsconfig.json with:

"compilerOptions": {
  "strict": false,

And also tried:

 "compilerOptions": {
   "noImplicitUseStrict": true,

But no love. Thoughts?

Answer 1

I faced a similar issue in my app. I was not able to use date picker without the strict mode. There was some invalid date range issue. Later on, when debugged I found that the template was using the strict mode due to which the config property was getting overridden.

Did you check the ng-app directive? Please check this: https://docs.angularjs.org/api/ng/directive/ngApp#usage

Just in case if your module or a template has a strict mode on explicitly. Hope this helps. Fingers crossed.

READ ALSO
How to run an isolated Node.js environment inside browser?

How to run an isolated Node.js environment inside browser?

I am trying to use isomorphic-git to perform git clone command on browser-sideBut due to adhering to the same-origin policy, I cannot send a cross-origin request to our company's GitLab, if no cors-proxy I can use

54
Print Object Value from Variable in NodeJS

Print Object Value from Variable in NodeJS

I want to display object value that i save in variableHow it works in NodeJS?

43
How do I get an inserted document ID in Google Cloud Firestore

How do I get an inserted document ID in Google Cloud Firestore

Is there a way to return the document id after inserting a new document in Google Cloud Firebase?

35
Sending emails through sendgrid to certain emails comes out in Chinese

Sending emails through sendgrid to certain emails comes out in Chinese

I am using the Sendgrid node library to send transactional emailsEverything was working fine until today I received a complaint that some people with @live

54