So far we have covered the following directives in AngularJS:
If you are new to Controllers in AngularJS I would recommend you to go through this article. I hope you are clear with the basics of controllers now in AngularJS. Now let us see how we can use functions in Controllers. Copy the below code in a HTML file.