Skip to content

Tern & CordovaJS support

Angelo edited this page Sep 9, 2015 · 16 revisions

tern-cordovajs provides the cordovajs Tern plug-in which gives a support for Cordova.js. (we hope that the official tern.js whill host this plugin).

After installing and converting your project as Tern Project, go at Tern project property, click on Tern / Modules item and select the cordovajs tern plugin :

Check CordovaJS Plugin

After that you can benefit with cordova.js completion for cordova object as well as on other variables and methods provided by CordovaJS:

Completion For Cordova Object

Tern is able to provide the the content assist on cordova object's members:

Completion on Cordova Object

Web Browser

You can play with online demo which uses CodeMirror (inside Web Browser).

Here a screenshot of CordovaJS completion with CodeMirror :

Completion with CodeMirror

Clone this wiki locally