Closed theotherp closed 8 years ago
If you're simply using the global, then rather than requiring it, it's available as a global apiCheck
. Then you disable it the same as in the docs.
Uhm, I just realized I might've misunderstood something. I read the tips and they said to disable apiCheck.js in production. But I don't even use any custom API checks, so disabling it probably wouldn't do anything, right?
No, angular-formly uses it heavily. You definitely want to disable it for production. There's an example on the website for production tips that uses globals.
I'm going to let you look at that and consider this issue closed. Check out the chat for more questions.
api-check.js after loading is complete, use apiCheck.globalConfig.disabled=true
.
formly version:8.4.0
All examples and instructions I can find on disabling API check require requireJS. How do I disable it without? Thanks.