update to bio modal
This commit is contained in:
parent
121bebbc33
commit
e7faaea106
@ -27,4 +27,4 @@
|
|||||||
if person.website
|
if person.website
|
||||||
a(href="#{person.website}" class="bio-link") 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
|
// SHOW FULL ABOUT US PAGE BIO
|
||||||
$scope.showBio = function (event) {
|
$scope.showBio = function (event) {
|
||||||
var bio = angular.element(event.currentTarget).text();
|
var person = angular.element(event.currentTarget);
|
||||||
console.log(bio);
|
var bio = person.text();
|
||||||
|
var name = person.attr('data-name');
|
||||||
|
//var pic = person.data('data-pic');
|
||||||
|
|
||||||
$mdDialog.show(
|
$mdDialog.show(
|
||||||
$mdDialog.alert()
|
$mdDialog.alert()
|
||||||
.title('Full Bio')
|
.title(name)
|
||||||
.content(bio)
|
.content(bio)
|
||||||
.ariaLabel('Biography')
|
.ariaLabel('Biography')
|
||||||
.ok('Close Bio')
|
.ok('Close Bio')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user