We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to give angular support for listview while using inside navigation drawer

Platform: jQuery |
Control: ejNavigationDrawer

How to give angular support for listview while using inside navigation drawer?

We can achieve angular support the listview control which is rendered inside the navigation drawer. Please find the below code snippets.

First, we have to refer the angular supporting scripts to the sample and then we need to add the ng-app and ng-controller attributes to the sample where ng-app is necessary to make the control to get render with angular support. Here we set the angular binding for a list items through datasource property which is present inside the navigation drawer. Please refer the below code snippets.


<!DOCTYPE html>

<html ng-app="SynApp">


    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />

    <meta charset="UTF-8" />

    <link href="themes/default/ej.web.all.min.css" rel="stylesheet" type="text/css" />

    <title>EJ Navigation Drawer with Angular </title>

    <script src="scripts/jquery-2.0.0.min.js" type="text/javascript"></script>

    <script src="scripts/ej.web.all.min.js" type="text/javascript"></script>

    <script src="scripts/ej.unobtrusive.min.js" type="text/javascript"></script>

    <script src="scripts/jsrender.min.js" type="text/javascript"></script>

    <script src="scripts/angular.min.js" type="text/javascript"></script>

    <script src="scripts/ej.widget.angular.min.js" type="text/javascript"></script>


<body ng-controller="navPaneCtrl">

   <div class="header">

        <div id="header">




    <!--navigation wrapper-->

    <div class="navwrapper">

        <!--navigation drawer with angular attributes-->

        <div ej-navigationdrawer e-enablelistview="true" e-targetid="header" e-position="normal" id="navpane">


                <e-item e-text="value1"></e-item>

                <e-item e-text="value2"></e-item>

                <e-item e-text="value3"></e-item>

                <e-item e-text="value4"></e-item>





        //angular controller to assign angular variable for all the list items

        angular.module('SynApp', ['ejangular'])

           .controller('navPaneCtrl', function ($scope) {

               $scope.value1 = "Home";

               $scope.value2 = "Profile";

               $scope.value3 = "Photos";

               $scope.value4 = "Location";






            margin: 0;





            background: none repeat scroll 0 0 blue;

            height: 45px;

            width: 100%;





            background-image: url("themes/images/drawericon.png");

            background-repeat: no-repeat;

            height: 38px;

            width: 38px;

            color: white;

            font-size: 32px;

            padding-top: 4px;

            text-indent: 45px;














You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile