Permalink
Browse files

fix($viewContentLoading): Add $viewContentLoading event back

  • Loading branch information...
1 parent 3d54041 commit c346a284d2d7c9e9273f6d0ea2073ef1f5c131fd @christopherthielen christopherthielen committed Dec 21, 2016
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/directives/viewDirective.ts
@@ -285,6 +285,20 @@ function $ViewDirective($view: ViewService, $animate: any, $uiViewScroll: any, $
$$animLeave: animLeave
};
+ /**
+ * @ngdoc event
+ * @name ui.router.state.directive:ui-view#$viewContentLoading
+ * @eventOf ui.router.state.directive:ui-view
+ * @eventType emits on ui-view directive scope
+ * @description
+ *
+ * Fired once the view **begins loading**, *before* the DOM is rendered.
+ *
+ * @param {Object} event Event object.
+ * @param {string} viewName Name of the view.
+ */
+ newScope.$emit('$viewContentLoading', name);
+
let cloned = $transclude(newScope, function(clone) {
clone.data('$uiViewAnim', $uiViewAnim);
clone.data('$uiView', $uiViewData);

0 comments on commit c346a28

Please sign in to comment.