Comments (10)
I solved it temporary by passing the time in scope in the directive:
and added <flip-clock time="3600"></flip-clock>
from angular-flipclock.
@Massad , could you please provide example of you code somewhere in jsfiddle?
I'll make it work from box
from angular-flipclock.
http://jsfiddle.net/OmarMassad/exk2nr3w/
Added an example of how to add the time from the controller too.
from angular-flipclock.
I really want to be able to call start/stop/etc functions to start and stop the clock. I'm using the original FlipClock now anyway because there doesn't seem to be anyway to do this with your directive.
from angular-flipclock.
Here's another example of how you can set the time, start, stop the clock from your controller.
http://jsfiddle.net/OmarMassad/exk2nr3w/7/
Hope it's useful.
from angular-flipclock.
I was hoping to call functions, rather than set variables, but thanks for trying to help.
from angular-flipclock.
You can play with the directive to make that happen and you're most welcome.
from angular-flipclock.
@Massad
I've updated your example, don't see any difficulty to run methods.
http://jsfiddle.net/STEVER/4tdxw3km/
@ashleydavis ,
please have a look too.
Let me know if it does not work for you.
from angular-flipclock.
So you are binding the methods to the parent scope? Thanks that's all I need to know.
You should release this as a bower component.
from angular-flipclock.
You should release this as a bower component.
It should be already there, please check
from angular-flipclock.
Related Issues (17)
- angular 1.2.x support? HOT 1
- Whats the Key Word For Dependency Injection @ angular-flipclock ? HOT 2
- Minification Breaks with ng 1.4.3 HOT 5
- Error trying to intialize FlipClock HOT 5
- Get Values after Init HOT 5
- setCountdown example requires HOT 1
- Cannot start timer programatically, i.e. from inside a controller HOT 1
- Use to represent numbers that are not a clock? HOT 1
- No window for options available in original FlipClockJS
- hundreds of days - can it be displayed? HOT 1
- Create a countdown with default value? HOT 3
- $scope.setTime is not a function
- Please version up and release for new feature HOT 1
- documentation? HOT 14
- Based condition i need make autostart clock HOT 2
- countDown setting. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-flipclock.