assign an AngularJS variable to a Razor variable in ASP.net

assign an AngularJS variable to a Razor variable in ASP.net

  $scope.currentYear = new Date().getFullYear();
  $scope.model_Year = 2019;

{{model_Year}} - {{currentYear}}

@{
    var a = 1;   //here assign the variable $scope.currentYear
    var b = 1;   //here assign the variable $scope.model_Year 
}

@if (a != b)
{
    <label class="text-bold">RODO</label>
}

Source: New feed
Source Url assign an AngularJS variable to a Razor variable in ASP.net