AEM / Angular:在条件下重定向到特定URL

时间:2016-03-11 12:04:43

标签: angularjs cq5 aem

我有一个组件,其输入文件如下:

<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;

                             }
                           }
                         }
                       ]);



});

我想在将特定错误代码传递给此页面时重定向到不同的页面。我怎么能这样做?

0 个答案:

没有答案
相关问题