I am working with MEAN technology and I want to call the function Using the
Controller.js of the client side, I am define the anchor tag on the header and
call the link Which is define into the module.js I want to call the function
But I don't know how to define the function.
I given the link into the header using:-
<li><a href="#/commentData">comment</a></li>
Now here is my module.js
var app = angular.module("myApp",['ngRoute','ngStorage']);
app.config(function($routeProvider){
$routeProvider.
when('/commentData',{
controller: 'ticketcontroller',
}).
otherwise({
redirectTo:'/'
});
});
I want to define the function after defined the controller how can I do it.Please help me.