These are chat archives for Urigo/angular-meteor

16th
Dec 2015
Maturu Srinivas Phani Ram
@phaniram
Dec 16 2015 12:21

While using
$reactive(this).attach($scope);

How can I actually use reactive->this instead of local this

I need to refer to scope variables from google gmap events

I've seen using it in
https://github.com/Urigo/meteor-angular-socially/blob/master/packages/socially-browser/client/parties/party-details/party-details.component.js#L55

but they're actually checking if object exists, if not create it. So, I can't destroy the existing one, I need to modify a part of it

Miloš Stanić
@MilosStanic
Dec 16 2015 14:37
@phaniram you need to declare var vm = this at the beginning of the controller, and then you can access variables with vm. If I understand correctly what you're asking
Maturu Srinivas Phani Ram
@phaniram
Dec 16 2015 16:02
yes, seems using vm instead of this in reactive is better apporach
Maturu Srinivas Phani Ram
@phaniram
Dec 16 2015 16:17
BTW
angular2 beta is out
May be a stupid question, can we actually use angular1 packages normally when coding with angular2-meteor ? Any adaptor or some sort of ?
Maturu Srinivas Phani Ram
@phaniram
Dec 16 2015 16:57

has anyone noticed this?

http://socially-step21.meteor.com/parties has proper UI

http://socially-step22.meteor.com/parties
has lot of UI issues, scroll lock, bad UI align etc.,

My guess is it's because ionic css

pbastowski
@pbastowski
Dec 16 2015 19:23
@phaniram ng1 packages are not compatible with ng2 at all. You will need specific ng2 versions of packages or otherwise use something like ngUpgrade, which basically runs both ng1 and ng2 together in the same app.