如何将值从一个窗口传递到另一个窗口?

时间:2015-07-07 11:08:06

标签: angularjs

我需要点击打开新窗口并将$ scope值传递到该窗口。我该怎么做?

我正在使用此代码:

<StackPanel>
    <StackPanel.Resources>
        <Style x:Key="LabelStyle">
            <Setter Property="Height" Value="25"/>
            <Setter Property="Background" Value="Red"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="HorizontalContentAlignment" Value="Right"/>
        </Style>
    </StackPanel.Resources>

    <Label Name="Header" Content="Test" FontWeight="Bold" Style="{StaticResource LabelStyle}"/>
    <Label Name="TextLabel" Content="Some Text" Style="{StaticResource LabelStyle}"/>
</StackPanel>

所以我需要将 $scope.ConfirmTicketPayOut = function (pinTicket, username) { $scope.pinTicket = pinTicket; accountDataProviderService.confirmTicketPayOut($scope.terminalId, pinTicket, username) .then(function (response) { $scope.confirmTicketPayOut = response; if ($scope.confirmTicketPayOut.Result == true) { $window.open('/ticketprint'); } }); } 传递给另一个窗口

0 个答案:

没有答案