Comments (4)
I just test with a blank project and everything seems to work.
Here are the steps i did to try to reproduce your issue :
ionic -v
=> 1.7.16
# init a blank project
ionic start myApp blank
cd myApp
ionic serve
# project is working as expected
bower install --save angular-timeago
=> install angular-timeago#0.4.3
# add 'yaru22.angular-timeago' as a dependency
angular.module('starter', ['ionic', 'yaru22.angular-timeago'])
# add library declaration
<script src="lib/angular-timeago/dist/angular-timeago.js"></script>
# define a controller
angular.module('starter').controller('MyCtrl', function(){
this.date = new Date();
});
# change ion-content
<ion-content ng-controller="MyCtrl as ctrl">
{{ctrl.date | timeAgo}}
</ion-content>
Can you share with us a project example for us to check and debug the problem ?
from angular-timeago.
Did you add yaru22.angular-timeago
as a dependency to your module?
e.g.
var app = angular.module('ngApp', [
'yaru22.angular-timeago'
]);
from angular-timeago.
Hi, yes I did include! Tried without 'yaru22' as well, but didn't work. It shows the error that I mentioned before.
Tried to install again and this is the message shown:
bower install --save angular-timeago
bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
bower ionic#1.3.1 cached git://github.com/driftyco/ionic-bower.git#1.3.1
bower ionic#1.3.1 validate 1.3.1 against git://github.com/driftyco/ionic-bower.git#1.3.1
bower angular-timeago#* cached https://github.com/yaru22/angular-timeago.git#0.4.3
bower angular-timeago#* validate 0.4.3 against https://github.com/yaru22/angular-timeago.git#*
bower ionic#1.3.1 install ionic#1.3.1
bower skipped ionic was not installed because there is already a non-bower directory with that name in the components directory (www/lib/ionic). You can force installation with --force.
ionic#1.3.1 ../.cache/bower/packages/a6e3331f5b6a666502edb06e4d042783/1.3.1
├── angular#1.5.3
├── angular-animate#1.5.3
├── angular-sanitize#1.5.3
└── angular-ui-router#0.2.13
from angular-timeago.
Thanks a lot @astik. I forgot to include <script src="lib/angular-timeago/dist/angular-timeago.js">
</script>on my index.html file!
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
- Assign class to timeAgo directive base on value being a past or future value. 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
- 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.