We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

I would like to use the ej object globally within my aurelia typescript project. How would I configure this?

Thread ID:

Created:

Updated:

Platform:

Replies:

132049 Aug 9,2017 07:25 PM UTC Aug 11,2017 07:02 AM UTC Aurelia 3
loading
Tags: General
Wayne Massey
Asked On August 9, 2017 09:26 PM UTC

I would like to use the ej object globally within my aurelia typescript project. How would I configure this?
I found this article https://help.syncfusion.com/aurelia/getting-started/exposing-ej-object but this doesnt help me as I have a preexisting project.. the instructions this article describes is to just use their project skeleton. Also, the skeleton has some deprecated dependencies it seems.

I am using Aurelia with typescript and webpack. 

Abinaya Subbiah [Syncfusion]
Replied On August 10, 2017 12:15 PM UTC

Hi Wayne Massey, 

Thanks for contacting Syncfusion support. 

You can access ej globally in your project by installing typing file @types/ej.web.all. Run the below command install typing ej.web.all

npm install @types/ej.web.all --save-dev 


Also ensure that you have installed aurelia-syncfusion-bridge and syncfusion-javascript packages to seamlessly work with Essential JavaScript for Aurelia components. 

Please let us know if you need further assist on this. 

Regards, 
Abinaya S 


Wayne Massey
Replied On August 10, 2017 06:00 PM UTC

Thank you Abinaya ! This helped. Also for reference,  I also needed to add a reference directive at the top of my class 

/// <reference types="ej.web.all" />

import * as $ from 'jquery';  


export class QueryCellInfo {

....
more code here
...
}

Abinaya Subbiah [Syncfusion]
Replied On August 11, 2017 07:02 AM UTC

Hi Wayne Massey, 

We are happy to hear that your issue has been resolved. 

Please let us know if you need further assist on this. 

Regards, 
Abinaya S 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;