Angular: Empty Fiddle

http://angularjs.org/

by eemece2

HTML

<div ng-controller="MainCtrl">
    <div ng-repeat="dialog in dialogs" ng-controller="dialog.ctrl">
        {{dialog.name}}: {{something}}
    </div>
</div>

JavaScript

var myApp = angular.module('myApp',[]);

function MainCtrl($scope) {
    $scope.dialogs = [
        {ctrl: 'DCtrl1', name: 'Dialog1'},
        {ctrl: 'DCtrl2', name: 'Dialog2'}
    ];
}

function DCtrl1($scope) {
    $scope.something = 'Data1';
}

function DCtrl2($scope) {
    $scope.something = 'Data2';
}