0

I want to open http://www.myexample.com/test/index.jsp?Id=ANGULAR_VAR in a new tab after clicking on a ID column in my ng-grid, here is the code But it does not work! How can I pass angular variable as a part of URL?

    $scope.gridOptionsDeals = {
        data: 'data',
        headerRowHeight: 60,
        multiSelect: false,
        enableRowSelection: false,
        columnDefs: [{
          width: 90,
          field: 'id',
          displayName: 'id',
          cellTemplate: '<div class="ngCellText" ng-class="col.colIndex()"><span ng-cell-text>' +
            '<a class="sku-details"  href="http://www.myexample.com/test/index.jsp?Id="+{{row.getProperty("id")}}+" target="_blank">{{row.getProperty("id")}}</a>' +
          '</span></div>'
        },
3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.