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

Please do an Angular 6+ version #37

Open
whizkidwwe1217 opened this issue Jan 5, 2019 · 1 comment
Open

Please do an Angular 6+ version #37

whizkidwwe1217 opened this issue Jan 5, 2019 · 1 comment

Comments

@whizkidwwe1217
Copy link

No description provided.

@danner26
Copy link

danner26 commented Feb 13, 2019

There is a way for this to work without them changing things - its just a work around for now..
You have to include the proper css and js files, then in your index add the scripts

<head>
  <link rel="stylesheet" href="assets/css/spinkit.css" />
  <link rel="stylesheet" href="assets/css/3-wave.css" />
  <link rel="stylesheet" href="assets/css/please-wait.css" />
</head>
<body>
  <script type="text/javascript" src="assets/js/please-wait.min.js"></script>
    <script type="text/javascript">
      var loading_screen = pleaseWait({
        logo: "assets/images/logo.png",
        backgroundColor: '#F4F5F7',
        loadingHtml: "<div class='sk-spinner sk-spinner-wave'><div class='sk-rect1'></div><div class='sk-rect2'></div><div class='sk-rect3'></div><div class='sk-rect4'></div><div class='sk-rect5'></div></div>"
      });
    </script>
</body>

Then within your app.component.ts, you just need to call (<any>window).loading_screen.finish(); to close the loading screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants