implementing elemental editor using angular