Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
import UpdateMixin from '../mixins/update';
export default Ember.Component.extend({
child_val: '',
actions:{
childAction(){
@mohamedali-s-4725
mohamedali-s-4725 / components.basic-form.js
Last active December 1, 2016 09:18 — forked from munsellj/components.basic-form.js
Component Destroy on Route Change
import Ember from 'ember';
export default Ember.Component.extend({
model:Ember.Object.create({name: '111'}),
willDestroyElement(){
console.log(this.get("model"));
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
Img_tag_with_tag:'&lt; &gt; &amp; <a href=""> SMA </a>'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
commentText:'&lt; &gt; &amp; <a href=""> SMA </a>',
imgTag: "'><img src=s onerror=alert()>"
});