Comments (5)
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.
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.
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.
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.
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)
- Update project on npm HOT 1
- NPM Package
- deviceDetector return incorrect for UC Browser and Opera HOT 3
- Fail to start an unit test module with ng-device-detector dependencies HOT 1
- `device-detector` not adding classes? HOT 1
- Add Dependency to re-tree HOT 3
- Provide information from user provided UAs HOT 6
- Add android-phone and android-tablet to the device list by defining it from UA HOT 2
- chrome headless support HOT 14
- ng-device-detector error in injection HOT 2
- bower install failing on ua-device-detector HOT 8
- Example in Plunkr doesn't work HOT 1
- Detect iOS Version HOT 4
- Adopt version release automation HOT 2
- deviceDetectorProvider.addCustom not working HOT 3
- Android os_version is "unknown" HOT 1
- Feature Request: Add isAndroid() to deviceDetector Service HOT 5
- Angular breaks when trying to inject deviceDetector HOT 2
- iPad Air 2, ios 13.2 not recognized as tablet on safari HOT 6
- Desktop device results on "unknown"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-device-detector.