I'm passing a querystring to a function - which then gets $compiled that opens a new window.
I get the following error
var url = 'http://.....?&filename=123.doc&user=Bob'
var html = <a href='#' ng-click='OpenUrl(" + url + ")'>MY LINK </a>"
var link = $compile(html)($scope)
the function just opens a new window . It doesn't seem to like the '&'
I'm $compiling the url and expression so it can be used in an ng-click
Any ideas what I'm doing wrong?