no need for this javascript:void(), you can keep it empty - href="", angular will prevent any action