loadingio / loading-bar

Flexible, light weighted and super fast Progress Bar Library
MIT License
408 stars 75 forks source link

ldBar doesn't appear in angular 2 app #14

Open zeus1200 opened 7 years ago

zeus1200 commented 7 years ago

Hi, I have an angular 2 app. I've tried to user loading bar, but it doesn't work.

In my index.html I import js and css files

<link rel="stylesheet" type="text/css" href="plugins/loading.io/loading-bar.css"> <script type="text/javascript" src="plugins/loading.io/loading-bar.js"></script>

and in my experience.component.html I load the bar like this

<div class="ldBar" data-value="50"></div>

but nothing happens. I tried it on a single html file, and works fine.

PS: Sorry for my english

PS2: I'm using angular quickstart proyect

zbryikt commented 7 years ago

do you have a sample repo to play with which I could reproduce this issue? I'm not quite familiar with Angular2, and I just tried the quickstart project, ldBar looks ok for me.

lastpeony commented 6 years ago

I am using ionic and i couldnt import loading-bar too

saurabh73 commented 6 years ago

Any plan to support angular? I am able to inject, but not able to update progress values.

zbryikt commented 6 years ago

I've published an angular-loading-bar package on npm, with sample code / usage document available here: http://github.com/loadingio/angular-loading-bar

can you guys try if it works?