Implement basic interface with angularjs