Angular Support in JQuery PercentageTextBox widget

10 Aug 20173 minutes to read

The PercentageTextBox widget supports two types of AngularJS support namely,

  • One-way binding
  • Two-way binding

One-way binding refers to the process of applying scope values to all the available properties of the PercentageTextBox widget, but the changes made in PercentageTextBox widget are not reflected or triggered in turn to the scope collection. This kind of binding applies to all the properties of the PercentageTextBox widget.

Two-way binding supports both the processes; it applies the scope values to the PercentageTextBox properties as well as the changes made in the PercentageTextBox widget also get reflected back and triggered within the AngularJS scope change function.

Apply the plugin and property assigning to the PercentageTextBox widget element through the directive that starts with the letter “e-“.

To know more details about the AngularJS binding, refer the following link location,

The following example depicts the way to bind data to the PercentageTextBox widget through angularJS support.

  • HTML
  • <!DOCTYPE html>
    <html xmlns="" ng-app="TextCtrl">
        <link href="" rel="stylesheet" />
        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
    <body ng-controller="TextboxCtrl">
        <div id="center">
            <table cellpadding="10">
                            <label for="percent">Percent</label>
                            <input id="percent" type="text" ej-percentagetextbox e-value="percentValue" />
                            <input type="text" class="e-input" style="border:1px solid #bdbcbd" ng-model="percentValue" />
        <script type="text/javascript">
            angular.module('TextCtrl', ['ejangular'])
               .controller('TextboxCtrl', function ($scope) {
                   $scope.percentValue = 400;

    The output of PercentageTextBox controls with two-way AngularJS binding is as follows.