update to bio modal
This commit is contained in:
parent
121bebbc33
commit
e7faaea106
|
@ -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}
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue