Example to show how to add controller to directive