Giter Club home page Giter Club logo

Comments (4)

antoprudenzano avatar antoprudenzano commented on August 23, 2024

+1 same Angular version and same error.

from ngx-scrolltop.

bartholomej avatar bartholomej commented on August 23, 2024

Thanks for the report. @Mozaritta @antoprudenzano
I just tried it on a real project with angular 15 and ran the tests and everything looks fine.
Can you show me your configuration?

This was my configuration:
package.json

{ 
  "dependencies": {
    "@angular/core": "^15.2.5",
    "ngx-scrolltop": "^6.0.0",
  }
} 

I just added new module NgxScrollTopModule to app.module.ts file and used ng-scrolltop like this:

app.component.html (as a directive)

<button
  ngxScrollTop
  ngxScrollTopMode="classic"
  class="my-custom-style"
>
  top
</button>

or

app.component.html (as a component)

<ngx-scrolltop></ngx-scrolltop>

from ngx-scrolltop.

somq avatar somq commented on August 23, 2024

Same here, 15.2.9 in my case.
Works with v4 though (ng add ngx-scrolltop@4)

Angular CLI: 15.2.9
Node: 18.16.0
Package Manager: yarn 1.22.4
OS: linux x64

Angular: 15.2.9
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.9
@angular-devkit/build-angular   15.2.9
@angular-devkit/core            15.2.9
@angular-devkit/schematics      15.2.9
@schematics/angular             15.2.9
ng-packagr                      15.2.2
rxjs                            7.8.1
typescript                      4.8.4

from ngx-scrolltop.

bartholomej avatar bartholomej commented on August 23, 2024

@somq Thx, and are you using directive or component? Can you show me how you use it?

from ngx-scrolltop.

Related Issues (19)

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.