btford / angular-modal

Simple AngularJS service for creating modals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attaching content to ctrl

miguelpeixe opened this issue · comments

I'm trying to attach content to ctrl before activating and the content doesn't render:

        ctrl.otherContent = 'blah'; // works
        $scope.openModal = function(content) {
            ctrl.content = content; // doesn't work
            modalService.activate();
        };

Nevermind, just made it work with:

$scope.openModal = function(content) {
  modalService.activate({ content: content });
}