Readds 8ad464d90e.
8ad464d90e
This reverts commit 8ad464d90e. Breaks G3.
This PR adds an ability to reset the angularjs library, which is often needed when Angular is loaded lazily using RequireJS.
Fixes #15080