Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support to inject html to the message #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions ngLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ angular.module('template/ngLoader/ngLoaderTemplate1.html', []).run(['$templateCa
" repeatCount=\"indefinite\"/>\n" +
" </path>\n" +
" </svg>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind-html=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"progressPercentage + '%'\" data-ng-cloak data-ng-show=\"progressPercentage !== undefined && progressPercentage !== null\"></p>\n" +
" </div>\n" +
"</div>");
Expand All @@ -48,7 +48,7 @@ angular.module('template/ngLoader/ngLoaderTemplate2.html', []).run(['$templateCa
" repeatCount=\"indefinite\"/>\n" +
" </path>\n" +
" </svg>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind-html=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"progressPercentage + '%'\" data-ng-cloak data-ng-show=\"progressPercentage !== undefined && progressPercentage !== null\"></p>\n" +
" </div>\n" +
"</div>");
Expand All @@ -70,7 +70,7 @@ angular.module('template/ngLoader/ngLoaderTemplate3.html', []).run(['$templateCa
" repeatCount=\"indefinite\"/>\n" +
" </path>\n" +
" </svg>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind-html=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"progressPercentage + '%'\" data-ng-cloak data-ng-show=\"progressPercentage !== undefined && progressPercentage !== null\"></p>\n" +
" </div>\n" +
"</div>");
Expand Down Expand Up @@ -101,7 +101,7 @@ angular.module('template/ngLoader/ngLoaderTemplate4.html', []).run(['$templateCa
" begin=\"0.4s\" dur=\"0.6s\" repeatCount=\"indefinite\" /> \n" +
" </rect>\n" +
" </svg>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind-html=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"progressPercentage + '%'\" data-ng-cloak data-ng-show=\"progressPercentage !== undefined && progressPercentage !== null\"></p>\n" +
" </div>\n" +
"</div>");
Expand Down Expand Up @@ -132,7 +132,7 @@ angular.module('template/ngLoader/ngLoaderTemplate5.html', []).run(['$templateCa
" begin=\"0.4s\" dur=\"0.6s\" repeatCount=\"indefinite\" />\n" +
" </rect>\n" +
" </svg>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind-html=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"progressPercentage + '%'\" data-ng-cloak data-ng-show=\"progressPercentage !== undefined && progressPercentage !== null\"></p>\n" +
" </div>\n" +
"</div>");
Expand Down Expand Up @@ -169,7 +169,7 @@ angular.module('template/ngLoader/ngLoaderTemplate6.html', []).run(['$templateCa
" begin=\"0.3s\" dur=\"0.6s\" repeatCount=\"indefinite\" />\n" +
" </rect>\n" +
" </svg>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind-html=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"progressPercentage + '%'\" data-ng-cloak data-ng-show=\"progressPercentage !== undefined && progressPercentage !== null\"></p>\n" +
" </div>\n" +
"</div>");
Expand Down Expand Up @@ -202,7 +202,7 @@ angular.module('template/ngLoader/ngLoaderTemplate7.html', []).run(['$templateCa
" begin=\"0.4s\" dur=\"0.6s\" repeatCount=\"indefinite\" />\n" +
" </rect>\n" +
" </svg>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind-html=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"progressPercentage + '%'\" data-ng-cloak data-ng-show=\"progressPercentage !== undefined && progressPercentage !== null\"></p>\n" +
" </div>\n" +
"</div>");
Expand Down Expand Up @@ -230,7 +230,7 @@ angular.module('template/ngLoader/ngLoaderTemplate8.html', []).run(['$templateCa
" <animate attributeName=\"y\" attributeType=\"XML\" values=\"10; 5; 10\" begin=\"0.3s\" dur=\"0.6s\" repeatCount=\"indefinite\" />\n" +
" </rect>\n" +
" </svg>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind-html=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"progressPercentage + '%'\" data-ng-cloak data-ng-show=\"progressPercentage !== undefined && progressPercentage !== null\"></p>\n" +
" </div>\n" +
"</div>");
Expand All @@ -245,7 +245,7 @@ angular.module('template/ngLoader/ngLoaderTemplate9.html', []).run(['$templateCa
" <span class=\"bar2 bar\"></span>\n" +
" <span class=\"bar3 bar\"></span>\n" +
" </div>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind-html=\"message\" data-ng-cloak data-ng-show=\"message\"></p>\n" +
" <p style=\"margin: 5px 0 -5px;color: #ccc;\" data-ng-bind=\"progressPercentage + '%'\" data-ng-cloak data-ng-show=\"progressPercentage !== undefined && progressPercentage !== null\"></p>\n" +
" </div>\n" +
"</div>");
Expand Down Expand Up @@ -313,4 +313,4 @@ angular.module('ngLoader', ['ngLoaderTemplates'])
});
}
};
}]);
}]);