mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(): remove deprecated $parse dependency from controllers
This commit is contained in:
@@ -187,8 +187,7 @@ angular.module('ionic.ui.scroll')
|
||||
'$rootScope',
|
||||
'$document',
|
||||
'$ionicScrollDelegate',
|
||||
'$parse', //DEPRECATED
|
||||
function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $location, $rootScope, $document, $ionicScrollDelegate, $parse) {
|
||||
function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $location, $rootScope, $document, $ionicScrollDelegate) {
|
||||
|
||||
var self = this;
|
||||
|
||||
|
||||
2
js/ext/angular/src/directive/ionicBar.js
vendored
2
js/ext/angular/src/directive/ionicBar.js
vendored
@@ -97,7 +97,7 @@ function tapScrollToTopDirective() {
|
||||
|
||||
|
||||
function barDirective(isHeader) {
|
||||
return [function($parse) {
|
||||
return [function() {
|
||||
return {
|
||||
restrict: 'E',
|
||||
compile: function($element, $attr) {
|
||||
|
||||
3
js/ext/angular/src/directive/ionicContent.js
vendored
3
js/ext/angular/src/directive/ionicContent.js
vendored
@@ -56,11 +56,10 @@ angular.module('ionic.ui.content', ['ionic.ui.scroll'])
|
||||
* @param {expression=} on-scroll-complete Expression to evaluate when a scroll action completes.
|
||||
*/
|
||||
.directive('ionContent', [
|
||||
'$parse',
|
||||
'$timeout',
|
||||
'$controller',
|
||||
'$ionicBind',
|
||||
function($parse, $timeout, $controller, $ionicBind) {
|
||||
function($timeout, $controller, $ionicBind) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
require: '^?ionNavView',
|
||||
|
||||
6
js/ext/angular/src/directive/ionicScroll.js
vendored
6
js/ext/angular/src/directive/ionicScroll.js
vendored
@@ -21,7 +21,11 @@ angular.module('ionic.ui.scroll', [])
|
||||
* @param {boolean=} scrollbar-x Whether to show the horizontal scrollbar. Default false.
|
||||
* @param {boolean=} scrollbar-x Whether to show the vertical scrollbar. Default true.
|
||||
*/
|
||||
.directive('ionScroll', ['$parse', '$timeout', '$controller', '$ionicBind', function($parse, $timeout, $controller, $ionicBind) {
|
||||
.directive('ionScroll', [
|
||||
'$timeout',
|
||||
'$controller',
|
||||
'$ionicBind',
|
||||
function($timeout, $controller, $ionicBind) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
scope: true,
|
||||
|
||||
@@ -154,7 +154,7 @@ function($timeout, $compile, $ionicSlideBoxDelegate) {
|
||||
onSlideChanged: '&',
|
||||
activeSlide: '=?'
|
||||
},
|
||||
controller: ['$scope', '$element', '$attrs', '$parse', function($scope, $element, $attrs) {
|
||||
controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) {
|
||||
var _this = this;
|
||||
|
||||
var continuous = $scope.$eval($scope.doesContinue) === true;
|
||||
|
||||
Reference in New Issue
Block a user