Comments (1)
The current implementation can be quite consuming as the watcher would be executed at every cycle. One idea to make it better, if the date has not changed and is already in the past, no need to check for the classes.
Also, I think this enhancement may not be a timeago feature but a separate directive that works directly on the date. I think the 2 feature should not be linked into a single directive as they are for 2 separate concerns.
@yaru22 any though about that ?
from angular-timeago.
Related Issues (20)
- Basic directive does not update when 'from-time' value updates HOT 1
- Use $interval instead of $timeout
- Easier way to add new languages HOT 3
- Basic Filter timeAgo not updating HOT 1
- Timezone aware HOT 6
- Publish last changes to bower and npm HOT 1
- Project building for version 0.4.2 HOT 2
- Specific time ago with breakpoints?
- Add support for moment objects
- Timezone support HOT 2
- Failed to instantiate HOT 4
- Error: Invalid Date toISOString@[native code] HOT 2
- custom formats
- Suppress output when date is null, instead of "NaN years ago" HOT 1
- Disable timeago when printing
- Update the dist folder HOT 2
- Do I need both JS files from the dist folder? HOT 1
- Issue With displaying 23 hours and converting to Date Format
- Timeago setting in Angular 2.0 HOT 1
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-timeago.