javascript - Invoking in strict mode -
i have configuration object:
jwtoptionsprovider.config({ tokengetter: (store) => { return store.get('token'); }, whitelisteddomains: ['localhost'] });
but, have strict mode enabled , following error:
tokengetter not using explicit annotation , cannot invoked in strict mode
i know $inject
, how use in situation?
just try
jwtoptionsprovider.config({ tokengetter: ['store', (store) => { return store.get('token'); }], whitelisteddomains: ['localhost'] });
Comments
Post a Comment