Initializing with AngularJS

You can configure declaratively initialized widgets by using the AngularJS directives.

The following example refers to the AngularJS directive in the Kendo UI AutoComplete. For more information on the features of the Kendo UI AngularJS directives, refer to the introductory article on AngularJS.

    <div ng-app="myApp">
        <div ng-controller="MyController">
            <input kendo-autocomplete k-data-source="dataSource" />
        </div>
    </div>

    <script>
        var myApp = angular
                        .module("myApp", [ "kendo.directives" ])
                        .controller("MyController", function($scope) {
                          $scope.dataSource = [
                                     'foo', 'bar', 'baz'
                                      ]
                            });
    </script>

See Also

In this article
Not finding the help you need? Improve this article