Rectangle 27 3

You can do it like this:

ng-click="openModal(person)"

Inject $modal to the controller and define a new function:

app.controller('ModalDemoCtrl', function($scope, $modal) {
... 

    $scope.openModal = function (person) {
        $modal({title: person.firstName, content: person.lastName, show: true});
    }

...

}
bs-modal="modal"
$scope.modal = {..}

javascript - AngularJS + Angular Strap - How to add dynamic content to...

javascript html angularjs twitter-bootstrap-3 angularjs-directive
Rectangle 27 0

You can do it like this:

ng-click="openModal(person)"

Inject $modal to the controller and define a new function:

app.controller('ModalDemoCtrl', function($scope, $modal) {
... 

    $scope.openModal = function (person) {
        $modal({title: person.firstName, content: person.lastName, show: true});
    }

...

}
bs-modal="modal"
$scope.modal = {..}

javascript - AngularJS + Angular Strap - How to add dynamic content to...

javascript html angularjs twitter-bootstrap-3 angularjs-directive