Code Monkey home page Code Monkey logo

ng2-odometer's Introduction

Personal Page

This project was generated with Angular CLI version 13.3.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

ng2-odometer's People

Contributors

jmandreslopez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ng2-odometer's Issues

Not Displaying Decimals Properly

Note: for support questions, please use one of these channels:

  • I'm submitting a ...
    [ C] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository

  • Do you want to request a feature or report a bug?

Not displaying 0s in decimals. Example: 0.0452 displays as .452

Example: https://monero.gives

  • Please tell us about your environment:

Angular 5, Chrome

  • Angular version: 2.1.2
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

ng9 IVY Ng2-odometer library issue when compile with AoT

See the ticket on the angular github as well:
angular/angular#35203

Affected Package
The issue is caused by package @angular/....
Is this a regression?
Sort of, it's because of IVY + AoT + https://github.com/jmandreslopez/ng2-odometer

it works with NG8 + AoT

Description
A clear and concise description of the problem...
Sooooo, upgrade to NG9 took some time but eventually I got there.
Development works when I use the settings:
"optimization":false,
"sourceMap":true,
"extractCss":true,
"namedChunks":false,
"aot":false,
"extractLicenses":false,
"vendorChunk":false,
"buildOptimizer":false,

When I set
"aot":true
It doesn't

error message is:
ERROR in node_modules/ng2-odometer/dist/index.d.ts:3:23 - error NG6005: Ng2OdometerModule.forRoot returns a ModuleWithPro
viders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this
occurrence is in library code you don't control, please contact the library authors.
3 static forRoot(): ModuleWithProviders;

I already have an old issue open on the library in respect to IVY:
#8
but nobody's home it seems ;).

I seem to remember the angular team was trying to be compatible with as much libraries as possible for IVY, not sure if that is still relevant/the case.

On first look, IVY is crazy fast in comparison to viewEngine for our application. Well done!

Best regards,

Lander

duration does not work for slide animation

When specifying a [duration] on the odometer and the [[animation]="'slide'", the duration does not work. However, if I change the animation to count, it works as expected

ng2-odometer not working with angular IVY

  • I'm submitting a ...
    [ x ] bug report

My angular version is 8.1.2, angular-cli the same version. My build target is es2015.
I've just tried to enable IVY as per: https://angular.io/guide/ivy
and I'm running into the following error while compiling:
ERROR in ENOENT: no such file or directory, open 'C:/Lander/WS/acro-companion/node_modules/ng2-odometer/dist/index'

I guess it could be related to:
angular/angular#30680

But then it should work as there was a change in angular for this to make it work.
Maybe it's something close by? Or something totally unrelated?

Could anybody maybe have a look at this?

Much thanks,

Best regards

ng2-odometer not working in angular 4 SSR

Note: for support questions, please use one of these channels:

  • I'm submitting a ...
    [ *] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository

  • Do you want to request a feature or report a bug?
    Want to report a bug

  • What is the current behavior?

ReferenceError: document is not defined in angular 4 SSR.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via

To reproduce:
git clone https://github.com/fulls1z3/universal
checkout to tag v1.3.0
add ng2-odometer in any component
npm run build:universal-prod
npm run serve
then you will get the error.

  • What is the expected behavior?

  • What is the motivation / use case for changing the behavior?

  • Please tell us about your environment:

  • Angular version: 4.1
  • Browser: [all | Chrome XX ]

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.