Unexpected token :
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
I'm not sure what your code was supposed to do as it was very long and contained a mixture of jQuery and Angular, but the error is caused by a typo on this line:
link = $('<a href="javascript::void(0)" class="page-link">' + (options.text) + '</a>');
There should not be two colons.