Before I am using JQuery and I use this to send URL with parameter
window.location = myUrl + $.param({"paramName" : "ok","anotherParam":"hello"});
but with angularjS this does not work the same way
$scope.myButton = function() {
$window.location.open = myUrl + $.param({"paramName" : "ok","anotherParam":"hello"});
};//Error: $ is not defined
can anyone help me how to do this in angularJs
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…