0

I need to insert css/js before view content is assigned. $stateChangeStart, $stateChangeSuccess, $viewContentLoaded aren't figuring out my problem. I want to write code like this:

$rootScope.$on('$beforeInsertHtml', function(event, state) {
    if (state.files) {
        updateFiles(state.files); // my loader
    }
});

Any solutions? Looks like I need to change source code and add additional event.

1 Answer 1

1

try with $viewContentLoading, this event is broadcasted by $view low-level service

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.