Skip to content

Instantly share code, notes, and snippets.

@mikegrassotti
Created November 5, 2014 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikegrassotti/be3f3f0da06574ed31c0 to your computer and use it in GitHub Desktop.
Save mikegrassotti/be3f3f0da06574ed31c0 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
var names = ["Jacob", "Isabella", "Ethan", "Emma", "Michael", "Olivia", "Alexander", "Sophia", "William", "Ava", "Joshua", "Emily", "Daniel", "Madison", "Jayden", "Abigail", "Noah", "Chloe", "你好", "你你你"];
export default Ember.Component.extend({
tagName: 'textarea',
didInsertElement: function() {
this.$().atwho({
at: '@',
data: names
})
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment