Giter VIP home page Giter VIP logo

Comments (4)

astik avatar astik commented on July 17, 2024 1

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.

yaru22 avatar yaru22 commented on July 17, 2024

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.

czmarcos avatar czmarcos commented on July 17, 2024

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.

czmarcos avatar czmarcos commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.