Merge pull request #23529 from ericsoft/master

[angular-material] - Added IStickyService
This commit is contained in:
Daniel Rosenwasser
2018-02-13 10:44:48 -08:00
committed by GitHub
2 changed files with 11 additions and 2 deletions
@@ -164,8 +164,7 @@ myApp.controller('DialogController', ($scope: TestScope, $mdDialog: ng.material.
.controller(function TestController(param) { })
.controller(class { })
.controller(['fakeService', function TestController(fake) { }])
.controller(['fakeService', class { }])
;
.controller(['fakeService', class { }]);
const dialogOptions: ng.material.IDialogOptions = {};
@@ -389,3 +388,11 @@ myApp.controller('PanelController', ($scope: TestScope, $mdPanel: ng.material.IP
$mdPanel.newPanelAnimation().openFrom({ top: 0, left: 0 });
};
});
myApp.controller('StickyController', ($scope: TestScope, $mdSticky: ng.material.IStickyService) => {
const stickyElement = angular.element(new Element());
const cloneStickyElement = stickyElement.clone();
$mdSticky($scope, stickyElement);
$mdSticky($scope, stickyElement, cloneStickyElement);
});
+2
View File
@@ -494,5 +494,7 @@ declare module 'angular' {
interface IProgressCircularProvider {
configure(options: IProgressCircularConfig): void;
}
type IStickyService = (scope: IScope, element: JQuery, elementClone?: JQuery) => void;
}
}