I am using Maven + npm to use Angular Google Maps. It was working fine until I upgraded all my dependencies to latest version including Angular to 1.5.8
I even tried including underscore as a dependency, but it doesn't seem to be working either.
Inside main.js
var angularGoogleMaps = require('angular-google-maps');
In Package.json
"angular-google-maps":"^2.3.4"
Please suggest me something. I have tried everything I could find on Google, but unable to solve this issue
For anyone looking answer to the problem I faced, here are my findings:
Angular Google Maps 2.3.4 has some compatibility issue with latest lodash version (tested with 4.15.0). Reverting back to 3.8.0 didn't help so I had to switch to angular-google-maps 2.3.3 and it works fine with 4.13.1.
A ticket for the same has been opened at Github, link: _ coudn't be found
Related
Alright, so I injected Ng-token-auth to my app and now an error shows up into my console:
'$http.get(...).success is not a function.
Doing some reading, Angular deprecated .success method after 1.6 version.
What can I do to make it work? Unfourtanetly I'm using Angular-Material which use 1.6 and cannot go back to a previuos version. What should I do?
After doing some research this was fix on they last commit but is not available in Bower yet. So I had to download myself from their official git site
i'm developing a website which has a fully Angular front-end.It works well in my local server.When i moved the site to an online one, it gives an bower related error.I was used angular bootstrap ui cdn.But for other Angular related files are loading through a bower.json file.So i'm confused why this error occurs.Hope someone help me to solve this.
I'm also trying to follow the Tutorial How To Use PouchDB + SQLite For Local Storage In Ionic 2, which seems a good entry point for using pouchdb with Angular 2 / Ionic 2. My OS is OSx
After getting able to install typings 'require' ionic serve throws:
TypeScript error: (...) Error TS2304: Cannot find name 'require'.
I followed the installing typings require failed in macOSX and Install Typings require for Ionic2 application threads but it didn't help me. (beside of a better understanding of 'TypeScript')
the require files are under:
/ionic2-tutorial-pouchdb/typings/globals/require
any Ideas? The tutorial about 'install require' doesn't work for me.
thx Pitt
I'm guessing that you have a line of code like:
let PouchDB = require('pouchdb');
You do not need to use require for importing into Angular2. Instead you should use import like this:
import PouchDB from 'pouchdb';
Reference from one of the GitHub issues on the PouchDB GitHub account
The link you provided also uses import rather than require. Also in newer versions of typescript, Typings have been replaced with #Types.
I am trying to install the AngularJS plugin for Intellij IDEA (https://plugins.jetbrains.com/plugin/6971?pr=idea), but am facing the following issues:
when using the plugin browser, IDEA does not find it (only result is Ionic Framework when searching AngularJS)
when downloading and installing manually, I get the following message: "Plugin AngularJS depends on unknown plugin JavaScript". A plugin I cannot, obviously, find.
Is this plugin no longer available for Intellij IDEA?
As mentionned by Lawrence, this is not available for Community edition.
I'm trying out Google's Material Design stuff, and there's something I'm having a problem with that you guys might be able to help.
I want to have a different theme per "major" module in my app.
I tryed using
$mdThemingProvider.theme('default');
In the config of each module, but I'm getting that theme is undefined. The only methods available are setDefaultTheme and alwaysWatchTheme
I'm using the latest stable release as I just installed via
bower install angular-material --save
Can you guys spot what I'm doing wrong?
UPDATE:
So I posted an issue on github and found my problem (the documentation online is for the master branch not the stable branch
https://github.com/angular/material/issues/1039
But I'm still trying to figure out how I can assign different themes to different modules
Looking further down the strand of the issue you posted to github, I noticed the suggestion to update your version of angular-material in bower.json.
"angular-material": "0.7.0-rc1-master-84842ff"
This worked for me and now I'm able to define my own theme just like was specified in the docs.
$mdThemingProvider.theme("customTheme").primaryColor("pink").accentColor("green");