"use strict";

var Brig = require('../');

var brig = new Brig();

// Create Engine
var engine = new brig.QmlEngine();
var rootContext = engine.rootContext();
var context = new brig.QmlContext(rootContext);

// Loading QML file
var component = new brig.QmlComponent(engine, 'application.qml');
var item = component.create(context);

// Set window title
item.setProperty('title', 'Helloooooo Brig');

// Get all properties
var keys = item.getPropertyNames();
for (var index in keys) {
	var key = keys[index];
	console.log(key, ":", item.getProperty(key));
}

"use strict";

var Brig = require('../../');

var brig = new Brig();

// Create Engine
var engine = new brig.QmlEngine();
var rootContext = engine.rootContext();
var context = new brig.QmlContext(rootContext);

// Loading QML file
var component = new brig.QmlComponent(engine, 'application.qml');
var item = component.create(context);

// Set window title
item.setProperty('title', 'Helloooooo Brig');

// Get all properties
var keys = item.getPropertyNames();
for (var index in keys) {
	var key = keys[index];
	console.log(key, ":", item.getProperty(key));
}

Correct module path which was required by example
Correct module path which was required by example
