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

Commit b07819e

Browse files
Gabriel DelépineGabriel Delépine
Gabriel Delépine
authored and
Gabriel Delépine
committed
Explain the single page mode and the removeAll() function
1 parent 16c75d8 commit b07819e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,15 @@ How to use ?
2323
{
2424
dynamicStylesheets.add("/path/to/your/css/file.css");
2525
}
26+
27+
3. To remove all added CSS files when the page change (in a single page application), set the single page mode :
28+
function MyCtrl($scope, dynamicStylesheets)
29+
{
30+
dynamicStylesheets.setSinglePageMode(true);
31+
}
32+
33+
4. To remove manually all added CSS files, call the function removeAll :
34+
function MyCtrl($scope, dynamicStylesheets)
35+
{
36+
dynamicStylesheets.removeAll();
37+
}

0 commit comments

Comments
 (0)