an angularjs directive which can complete expressions or words