mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #23529 from ericsoft/master
[angular-material] - Added IStickyService
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Vendored
+2
@@ -494,5 +494,7 @@ declare module 'angular' {
|
||||
interface IProgressCircularProvider {
|
||||
configure(options: IProgressCircularConfig): void;
|
||||
}
|
||||
|
||||
type IStickyService = (scope: IScope, element: JQuery, elementClone?: JQuery) => void;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user