Adding directives modules
A example directive
Using example directive
Adding services
Function to call service
Services module
example for service and directive