Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit 820f1d7

Browse files
Gabriel DelépineGabriel Delépine
Gabriel Delépine
authored and
Gabriel Delépine
committed
Change event for the single page mode
Change event from $locationChangeStart to $viewContentLoaded. With $locationChangeStart, the CSS files was put off so early.
1 parent 0fe30db commit 820f1d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angularDynamicStylesheets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ angular.module('DynamicStylesheets', [])
1515
var singlePageMode = false;
1616

1717
// Capture the event `locationChangeStart` when the url change. If singlePageMode===TRUE, call the function `removeAll`
18-
$rootScope.$on('$locationChangeStart', function()
18+
$rootScope.$on('$viewContentLoaded', function()
1919
{
2020
if(singlePageMode === true)
2121
removeAll();

0 commit comments

Comments
 (0)