Was checking this and thought will post an answer if someone else needs it 
: 
This works - (please note Dctrl1 is not a string)

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

On Sunday, October 14, 2012 at 2:57:32 PM UTC+5:30, Eduardo Martinez Cobos 
wrote:
>
> Hello,
> I can't set ng-controller with scope variables:
>
> http://jsfiddle.net/eemece2/ADukg/1074/
>
> All my attemps have failed.
> How can I do it?
>
> Thanks!
> Edu
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to