Git Product home page Git Product logo

Comments (5)

srfrnk avatar srfrnk commented on May 28, 2024

Hi @ashwanikumar415,

Can you check that you registered the module as a dependency in your module definition?
Can I see the code hosted somewhere?

from ng-device-detector.

ashwanikumar415 avatar ashwanikumar415 commented on May 28, 2024

Apologies for late reply . Code is hosted presently at localhost itself .
For experiment i tried different library which is : "angular-bowser". i faced the similar issue .
But i could fix it with below lines :

require('angular-bowser'); var myApp = angular.module('myApp', [ require('ng-admin'),'base64','ngCookies', 'ngStorage', 'jlareau.bowser']);

jlareau.bowser is angular module which is from angular-bowser.

i did not understand that even though the installed module was included in index.html page . Still had to do require('angular-bowser');

Note : if i remove the require line . i get the same error as mentioned above in the bug description :
Error: [$injector:nomod] Module 'jlareau.bowser' is not available!

from ng-device-detector.

srfrnk avatar srfrnk commented on May 28, 2024

Gr8 @ashwanikumar415 - it's probably like I suspected.
You forgot to do the following step from the Instalation Instructions:

  • Add module to your app dependencies: ...angular.module("...", [..."ng.deviceDetector"...])...

Please make sure you went through all the steps described there.

from ng-device-detector.

ashwanikumar415 avatar ashwanikumar415 commented on May 28, 2024

Unfortunately , as i mentioned in my above bug description . ng.deviceDetector module was included as a dependency
var myApp = angular.module('myApp', [ require('ng-admin'),'base64','ngCookies', 'ngStorage', 'ng.deviceDetector']);

from ng-device-detector.

srfrnk avatar srfrnk commented on May 28, 2024

If you can share the code or create a reproduction of the issue on CodePen / Plunker (or equivalents) I can take a look.
As it is your description is not enough to make any conclusion.
The code works as far as I can see - take a look at the demo plunker to see it at work.

from ng-device-detector.

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.