AngularJS Support

10 Aug 20174 minutes to read

The Textbox widget supports two types of Angular JS 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 CurrencyTextBox widget, but the changes made in CurrencyTextBox widget are not reflected or triggered in turn to the scope collection. This kind of binding applies to all the properties of the CurrencyTextBox widget.

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

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

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

The following example depicts the way to bind data to the CurrencyTextBox widget through angular support.

  • HTML
  • <!DOCTYPE html>
    <html xmlns="" ng-app="TextCtrl">
        <!-- style sheet for default theme(flat azure) -->
        <link href="" rel="stylesheet" />
        <script src=""> </script>
        <script src=""> </script>
        <script src=""></script>
        <script src=""></script>
    <body ng-controller="TextboxCtrl">
        <div id="center">
            <table cellpadding="10">
                            <label for="currency">Currency</label>
                            <input id="currency" type="text" ej-currencytextbox e-value="currencyValue" />
                            <input type="text" class="input ejinputtext" ng-model="currencyValue" />
        <script type="text/javascript">
            angular.module('TextCtrl', ['ejangular'])
               .controller('TextboxCtrl', function ($scope) {
                   $scope.currencyValue = 400;
            .input {
                height: 27px;
                text-indent: 10px;
                width: 81%;

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

    CurrencyTextBox at initial load

    CurrencyTextBox with AngularJS Binding