我有一个组件,其输入文件如下:
<input type="submit" class="button blue" errorredirection="http:google.com/home" URL? data-url="${is:formatUrl(properties.buttonlink)}" value="${properties.buttonlabel}"
and the angular directive is:
$scope.directive("URL", [
function() {
return {
restrict: "A",
scope:false,
link: function($scope, el, attributes, controllers) {
$scope.errordirection = attributes.errordirection;
}
}
}
]);
});
我想在将特定错误代码传递给此页面时重定向到不同的页面。我怎么能这样做?