Skip to content

Instantly share code, notes, and snippets.

@gokatz
Forked from amritha-v/controllers.application.js
Last active July 21, 2016 05:50
Show Gist options
  • Save gokatz/765bdd288789b28657f6d0f98bc100e1 to your computer and use it in GitHub Desktop.
Save gokatz/765bdd288789b28657f6d0f98bc100e1 to your computer and use it in GitHub Desktop.
escape html safe
import Ember from 'ember';
export default Ember.Controller.extend({
appName: Ember.computed(function() {
return '<h6>someString</h6>';
}),
appName1: Ember.computed(function() {
return Ember.String.htmlSafe('<h2>someString</h2>');
})
});
{{appName}}
<br>
{{appName1}}
<br>
{{outlet}}
<br>
<br>
{
"version": "0.8.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.5.1",
"ember-data": "2.5.2",
"ember-template-compiler": "2.5.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment