update to bio modal

This commit is contained in:
Alex Wolfe 2015-03-04 23:22:06 -08:00
parent 121bebbc33
commit e7faaea106
2 changed files with 6 additions and 4 deletions

View File

@ -27,4 +27,4 @@
if person.website
a(href="#{person.website}" class="bio-link") Website
p(class="text-body" ng-click="showBio($event)") #{person.bio}
p(class="text-body" data-pic="#{person.picture}" data-name="#{person.name}" ng-click="showBio($event)") #{person.bio}

View File

@ -39,12 +39,14 @@ angularIO.controller('AppCtrl', ['$scope', '$mdDialog', function($scope, $mdDial
// SHOW FULL ABOUT US PAGE BIO
$scope.showBio = function (event) {
var bio = angular.element(event.currentTarget).text();
console.log(bio);
var person = angular.element(event.currentTarget);
var bio = person.text();
var name = person.attr('data-name');
//var pic = person.data('data-pic');
$mdDialog.show(
$mdDialog.alert()
.title('Full Bio')
.title(name)
.content(bio)
.ariaLabel('Biography')
.ok('Close Bio')