netanelgilad / meteor-ionic-example

An example app using urigo:ionic package for simple app development with the ionic framwork on meteor.
72 stars 21 forks source link

Getting angularjs errors after running it #10

Closed ambujpunn closed 9 years ago

ambujpunn commented 9 years ago

I cloned the repo and ran a "meteor update". after updating, I ran the app, but then I was given an errors in my console log:

screen shot 2015-03-31 at 11 14 59 pm

Is there a reason why this is happening?

ambujpunn commented 9 years ago

@netanelgilad do you know why this is happening?

netanelgilad commented 9 years ago

I'll be checking that later today.. Probably issues with the newer version of angular-meteor.

On Thu, Apr 2, 2015, 09:03 ambujpunn notifications@github.com wrote:

@netanelgilad https://github.com/netanelgilad do you know why this is happening?

— Reply to this email directly or view it on GitHub https://github.com/netanelgilad/meteor-ionic-example/issues/10#issuecomment-88754246 .

elmor34 commented 9 years ago

I 've solved the problem. Now it works with the latesr version 1.1. Only urigo:ionic and urigo:angular need to be added. Changed :

Packages to :

meteor-platform
urigo:ionic
urigo:angular

and app bootstrap to :

    Meteor.startup(function ()
    {
      angular.bootstrap(document, ['starter']);
    });

angular.module('starter', ['angular-meteor','ionic'] )

.run(['$ionicPlatform',function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    if(window.StatusBar) {
      // org.apache.cordova.statusbar required
      StatusBar.styleDefault();
    }
  });
}])
netanelgilad commented 9 years ago

Hey guys, sorry it took me so long but I updated the example to the latest versions in meteor and angular-meteor. Check it out! should work with no errors at all now.

ambujpunn commented 9 years ago

Thanks @netanelgilad! It's working now :) Btw I've also created a simple git repo that integrates Ionic&Angular with Meteor: https://github.com/ambujpunn/meteorionic

It also does the trick in using @Urigo's urigo:angular and urigo:ionic packages. If anyone has such problems again, please feel free to look at both of these repos :) :beers:

netanelgilad commented 9 years ago

Awesome @ambujpunn! Try PRing the readme of urigo:ionic to reference your example.

ambujpunn commented 9 years ago

Thanks @netanelgilad! I've sent a PR including both our repo's as reference: https://github.com/Urigo/meteor-ionic/pull/41