lundi 19 décembre 2016

How can I get the parameter in Ember.js?

I'm new in Ember. And I want to know how to get the parameter in .js.

It's my source

:: normal page calling component

<h4>WaterMark Page</h4>

::component.js

// I want to get all of parameter here.

import Ember from 'ember';
import layout from '../templates/components/comp-watermark';
export default Ember.Component.extend({
  layout
});

::component.hbs

<div>
 WaterMark Component.
</div>

<div>Parameter01 : </div>
<div>Parameter02 : </div>

//also I want to seperate using type which is parameter from normal-page

<button type="button" class="btn btn-default">Default</button>
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-link">Link</button>




Aucun commentaire:

Enregistrer un commentaire