Git Product home page Git Product logo

Comments (3)

rithilr avatar rithilr commented on May 23, 2024 1

Thank you very much for the quick response, now it is working, i exported the SnotifyModule from my main module, so it will be available even route changes.
exports: [ SnotifyModule ]

from ng-snotify.

artemsky avatar artemsky commented on May 23, 2024

well, looks like you put <ng-snotify /> inside the initial component. And when you change the route. It disappears because you destroy component and initialize another one when the route changes. That's why you don't see anything.

I'll test now with routing. And I will write my feedback later.

from ng-snotify.

artemsky avatar artemsky commented on May 23, 2024

Yeah. It worked)

Seems like I was right about your problem.

Make sure you inject <ng-snotify /> outside your <router-outlet />. This should help.
test-with-router

Or if you change the whole module on route changes. You should initialize all your plugins again. Because new module doesn't know about all your stuff until you add them. This just how it works

from ng-snotify.

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.