How to use both interpolation ({{ ... }}) and ng-bind to display a dynamic value using angularJS

<div ng-app="interpolationApp" ng-controller="InterpolationController">
    <p>Interpolation: {{ dynamicValue }}</p>
    <p ng-bind="dynamicValue"></p>
</div>

<script>
    var app = angular.module('interpolationApp', []);
    app.controller('InterpolationController', function($scope) {
        $scope.dynamicValue = 'Dynamic Value';
    });
</script>

 

Post your Answer