Search results

Register Syncfusion License key in JavaScript(ES6) application

24 May 2022 / 1 minute to read

Syncfusion license key should be registered, if your project using Syncfusion JavaScript(ES6) packages reference. The generated license key is a string that needs to be registered after any Syncfusion JavaScript(ES6) reference.

Note: Syncfusion license validation is done offline during application execution and does not require internet access. Apps registered with a Syncfusion license key can be deployed on any system that does not have an internet connection.

The following code is used to register the license.

JavaScript es6 / TypeScript

Register the license key at the entry point of the project before using the Syncfusion controls.

Note: As we have mandated License registration for the Syncfusion JavaScript components, we realize there is a possibility to view the registered Syncfusion License key from your application by others. We acknowledge this is taking place in the JavaScript platform, as we have minimal scope for hiding the License key and we also recommend not to advertise it.

Copied to clipboard
// Registering Syncfusion license key
import { registerLicense } from '@syncfusion/ej2-base';

ej.base.registerLicense('License key');

Note: Only from 2022 Vol 1 v20.1.0.47, license key registration required for Essential JavaScript 2 products.