   var rootApp = angular.module('rootApp', ['myApp1','myApp2']);

        var myApp1 = angular.module('myApp1', []);
        myApp1.controller('MyController1', function ($scope, $http, $window,$timeout) {
            $scope.data = {
                availableOptions: [
                    { id: '1', name: 'Public' },
                    { id: '2', name: 'Note' },
                    { id: '3', name: 'Reminder' },
                    { id: '4', name: 'List' },
                    { id: '5', name: 'Secret' }
 