04.07.2019 Views

frontend-developer-1

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Customize and Create JavaScript<br />

requesting object. Whenever that data is updated, it flows through the properties as<br />

specified in the imports node.<br />

define([<br />

'uiComponent'<br />

], function(Component) {<br />

return Component.extend({<br />

defaults: {<br />

price: 11,<br />

tracks: {<br />

price: true<br />

},<br />

imports: {<br />

price: '${$.provider}:price'<br />

// we are linking the price variable on<br />

this with the price observable in $.provider.<br />

}<br />

}<br />

})<br />

});<br />

Copyright © 2018, SwiftOtter, Inc.<br />

99

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!