Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check what version of Ember.js is loaded?

How can I check in a browser console what version of Ember.js is loaded? I know I can check it in the library code, on its top

/*!
 * @overview  Ember - JavaScript Application Framework
 * @copyright Copyright 2011-2016 Tilde Inc. and contributors
 *            Portions Copyright 2006-2011 Strobe Inc.
 *            Portions Copyright 2008-2011 Apple Inc. All rights reserved.
 * @license   Licensed under MIT license
 *            See https://raw.github.com/emberjs/ember.js/master/LICENSE
 * @version   2.4.1
 */

like here, but let's say I have two versions and want to check on the fly which one has been loaded. How can I do this in a console?

like image 380
Arkadiusz Kałkus Avatar asked Mar 03 '16 09:03

Arkadiusz Kałkus


1 Answers

In the Browser console You can type

Ember.VERSION

to get the version number of the loaded Ember.js library.

like image 148
Daniel B. Avatar answered Oct 12 '22 20:10

Daniel B.