Fixing the about page
This commit is contained in:
commit
eb393cb189
|
@ -2,7 +2,7 @@ angularIO.directive('biocard', function($rootScope, $timeout, $mdDialog) {
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
scope: {},
|
scope: {},
|
||||||
link: function (scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
// SET SCOPE VALUES
|
// SET SCOPE VALUES
|
||||||
scope.name = attrs.name;
|
scope.name = attrs.name;
|
||||||
scope.pic = attrs.pic;
|
scope.pic = attrs.pic;
|
||||||
|
@ -20,7 +20,7 @@ angularIO.directive('biocard', function($rootScope, $timeout, $mdDialog) {
|
||||||
$mdDialog.show({
|
$mdDialog.show({
|
||||||
parent: angular.element(document.body),
|
parent: angular.element(document.body),
|
||||||
targetEvent: $event,
|
targetEvent: $event,
|
||||||
scope: scope, // use parent scope in template
|
scope: scope.$new(), // Uses prototypal inheritance to gain access to parent scope
|
||||||
preserveScope: true,
|
preserveScope: true,
|
||||||
template:
|
template:
|
||||||
'<md-dialog class="modal" aria-label="List dialog">' +
|
'<md-dialog class="modal" aria-label="List dialog">' +
|
||||||
|
@ -43,4 +43,4 @@ angularIO.directive('biocard', function($rootScope, $timeout, $mdDialog) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue