Urigo / angular-meteor

Angular and Meteor - The perfect stack
https://www.angular-meteor.com/
MIT License
2.36k stars 622 forks source link

1.3.6: Reactivity not working properly and more #1264

Closed mattiLeBlanc closed 8 years ago

mattiLeBlanc commented 8 years ago

Hi,

I am using Angular Meteor quite extensively in the current building of a prototype for a financial company.

During development I ran into a couple of issues, which have been addressed quickly by Urigo ( many thanks for that).

But still I think some things of the new API are not working 100% and I am running into issue which cost me a lot of time to track down or work around.

Just for the sake of reporting, I am going to list them down here. Please feel free to respond or give constructive feedback on how to better do it, if it is not a bug.

edit: Actually it is one big story holding probably multiple issues but mainly it is related to reactivity.

\ 1) Reactivity with an object: not autorunning after setting of new value**

I have a simple sort scenario where I have a list of invoices and I have a header with columns. Clicking on the columns need to trigger a sort. For this I created a directive that will capture the click on a specific column and update the scope value of sortColumns in the main dashboardController (which holds the invoice list subscription). This scope value is the one that should be watched.

  updateSort( sortValue: any ): void {

    console.log( "updating sort", sortValue);
    this.sortColumns.__currentColumn  = sortValue;
    this.sortColumns[ sortValue ]     = 1;
    this.$scope.$digest();
  }

In BLAZE, I would create a ReactiveVar and that would be it. But unfortunately in Angular I need to watch this variable change somewhere. Because I want to filter on my subscription, a template Helper would make sense to me. I create a helper invoices, which will just return a Find() on the invoices subscription. In the helper I add

trigger = this.getReactively( 'sortColumns'.__currentColumn );
sort =  angular.copy( this.sortColumns );
delete sort.__currentColumn;
return Invoices.find( {}, { sort: sort } );

The updateSort function is the one I call from the directive because directly accessing the sortColumns object and updating did not result in a reactive update in Autorun OR the helper.

However, just updating the object with new key/values did not work either, because watching sortColumns alone did not result in a reactive update. Only looking specifically looking at sortColumns.__currentColumn and updating this property only to trigger the update seems to work. So I have to remove the property in my sort object so that I can pass the sort object directly to the Mongo Find().

With the $digest call, I wouldn't get the update of my sortColumns. Why is this necessary?

Expected behaviour: If I update the object, with whatever content and I am watching the object and not a specific property, I expect a reactive Update, right?

2) Updating controller variable directly from directive not triggering reactive update So I used the updateSort function in the first reported issue, but at first I wanted to directly update that value from the directive. I gave the directive an isolated scope but I assume the value in the directive is always a copy of the value from the controller. So Autorun or ReactiveContext would never watch that copy. So I called a function that updates the value IN the controller. This does make sense, so maybe not a bug but I want to validate if this is the best way.

3) Running in a $digest error When I try to set the initial sorting from my column directive I do it like this: By giving on column a attribute direction="desc" and while looping through my columns I look at the one that has a direction attribute and then call the updateSort function with the correct column in my dashboardController.

On first page run, I get a $digest is already running error. I intentionally call the $digest function in my updateSort to make sure during runtime, when a user clicks on the column, a reactive update takes place. I guess this issue is related to the above mentioned reactive issues and I could remove $digest in the future.

4) Subscription stopped issue I still run into the subscription stopped issue once in a while. Especially during my issues with the sorting directive, on application auto reload by Meteor I see an empty invoice list. Then reloading by clicking in the address bar and hitting enter a several times work. Or go to another view and go back always seem to work. Not sure what triggers this issue.

5) Helper reactive reRun returns empty collection for a instant and then normal collection I have a helper in my DashboardController that returns all invoices. As mentioned above, I have a reactive Sort object. When I do sort, the helper does a return of Invoices.find( selector, { sort: sort } ); This would renew the invoices in my template which it does. However, there is an instant where the results flicker from an empty collection to a full collection. When I console.log the invoices with sort and filter

        console.log( "length", Invoices.find( selector, { sort: sort } ).fetch().length);
        return Invoices.find( selector, { sort: sort } );

it always shows 27, when I sort like a madman. However when I print the same collection length in my template, the result goes from [] to 27 in an instant.This triggers a flickering effect of my 'There are no invoices in your account' to the list of invoices. Is this something that can be prevented? Only return the helper collection to the template when it's done and not empty? Of course it doesn't always do it. When I click on 3 columns to sort, it might happen at the third one...

Summary: It took me most of the day to figure out how to get this working and in the end it still feels like a hack. And some fixes trigger errors in other situations, like described in issue 3.

I think it would be nice to make a bigger list of examples for all kind of scenario's with ReactiveContext, Helpers etc.. That way people can safe time and we are sure noone is hacking the system.

sean-stanley commented 8 years ago

I had similar issues in a fairly large project with angular-meteor. I eventually had to give up or take some quite hacky routes to get things to work and I'm still not sure why my eventual solution worked. I'd be keen to see or work on some meteor pen's that can accurately reproduce these bugs.

plraphael commented 8 years ago

I'm running into a similar problem as described in 4) Subscription stopped issue.

Basically, in the page immediately after login, my collection that should have one item after the subscription has none. If I refresh the page, everything goes back to normal.

EDIT: But my version of angular is 1.3.7-beta.1_1, not 1.3.6. Sorry for that, I only wanted you guys to know that I have similar issues as well. I'll delete the comment if it proves irrelevant to this issue.

ThomsCass commented 8 years ago

I'm with 1.3.7 and got the same problem as described in 4

mattiLeBlanc commented 8 years ago

@plraphael No, your comment is not irrelevant. I reckon version 1.3.6 and version 1.3.7 shared much code and it is important to know if an issue is still relevant for an even newer version.

Urigo commented 8 years ago

thank you for those reports. It will be great if you could reproduce a separate isolated repo with the problem. It can help me solve it and help you isolate and understand it

Urigo commented 8 years ago

also, just to make sure, please check your code while doing deep watch in getReactively instead of regular by providing true to the objectEquality parameter - http://www.angular-meteor.com/api/1.3.6/get-reactively#arguments

mattiLeBlanc commented 8 years ago

Mate,

I am just testing with 1.3.7 on my girlfriends macbook (I didn't want to upgrade on my production macbook just yet).

I checked all items that I posted above and how they work at this version.

1) Reactivity with an object: not autorunning after setting of new value

This still seems to be an issue, unless I am not using it correctly.

The code below has the updateSort function triggered by a directive and provides a value like { column: 'Total', direction: 'desc' }. This is set in the private variable sortColumns which is being watched (the whole variable).

 this.helpers( {

  invoices: () => {
    var sort;

    // this is purely to make sortColumns reactive
    //
    sort = this.getReactively( 'sortColumns' );
    return Invoices.find( {}}, { sort: sort } );
  }
} );

updateSort( sort: any ): void {

   this.sortColumns[ sort.column ]  = sort.direction === 'desc' ? -1 : 1;
  this.$scope.$digest(); // still necessary to make the reactive update work
 }

Updating the object with another key doesn't trigger the watch on the object itself. Maybe this is because that is not how the watch should work. However with Meteor Blaze ReactiveVar (if I am remembering correctly) it DOES work.

I only get the situation working if I add this.sortColyms = {} to the updateSort function and reset the object on each column order. That works but feels like a hack if the reactivity should work on an object.

The $DIGEST is still necessary. Other wise the Helper will not reRun.

Checking DeepWatch option now on getReactivitly().

***EDIT 8/2/2016 22:40 AEST. Setting DeepWatch to true does work partially ( don't have to reset the columnSort to {} every time), however without the $DIGEST it doesn't work. $digest call is required to make it work right now. That looks like a bug, right?

2) Updating controller variable directly from directive not triggering reactive update

Not a bug IMO, because directive makes copy of variable and that copy is not being watched. Using the controller function to update the variable being watched makes sense.

3) Running in a $digest error

Removing $digest is not an option right now, see issue 1.

4) Subscription stop issue

Unfortunately I still see the subscription stopping during Meteor Development rebuild with version 1.3.7. It seems to happen constantly after code update and Meteor reloads the browser (chrome). I really need to navigate to another state and back to get the subscription to work.

***EDIT 8/2/2016 22:42 AEST. Event when the dashboard is loading the subscription, a hard reload will actually break the subscription now....Actually the subscriptions seems to stop more often than on version 1.3.6

5) Helper reactive reRun returns empty collection for a instant and then normal collection

This issue is still playing. The template apparently gets an update before the helper is finished getting the full cursor. It happens when I do multiple sorts in a row and the helper is called a couple of times with every time a new Sort command

Urigo commented 8 years ago

@mattiLeBlanc it looks like you haven't read my comment.

  1. Please check your code while doing deep watch in getReactively instead of regular by providing true to the objectEquality parameter - http://www.angular-meteor.com/api/1.3.6/get-reactively#arguments
  2. Please provide a separate repo with a reproduction
    • If you haven't found the time to share a reproduction it will be hard for me to find the time to solve the problem
mattiLeBlanc commented 8 years ago

@Urigo Yes, I did but I was just in the process of writing a report :). I have updated my findings in the above post and I have emailed you about access to the repo.

Urigo commented 8 years ago

@mattiLeBlanc I'm happy the deep watch parameter solved one of your issues. @sean-stanley @plraphael @ThomsC did it solve yours as well?

About the second problem - private repo won't help me. If you haven't found the time to go into your code and isolate the problem, it's not a good idea that I will go into your private code, try to isolate your business logic with the problem and share a reproduction.

Please go into your code and isolate the problem.

I hope you understand my logic and it makes sense. I want to help you solve the problem.

About the digest thing, something I would start with if I had a reproduction is if it's an Angular or Angular-Meteor problem. I would put a regular Angular $watch on sortColumns and see if it fires

mattiLeBlanc commented 8 years ago

@Urigo What if the problem is that it doesn't happen in an isolated situation? Maybe something breaks, timing issues etc because it starts to grow? I am happy to try to isolate it, just thought it would be easier if I give you access to the full app and tell you where to look. I will try your watch, however if the updateRow function is executed (which it is, I consoled logged it and it does update the this.sortColumn object, the Helper doesn't fire unless I call a $digest, wouldn't it the issue be the combination of Angular and Meteor?

**EDIT I will am going to bed now, but I will make an excerpt tomorrow and share that with you via Github.

Urigo commented 8 years ago

not for sure because $digest just call the Angular's digest loop so the question is why Angular doesn't fire it by itself when you change a scope variable

sean-stanley commented 8 years ago

@Urigo, rather than using a deep watch I watched the individual parameters e.g. getReactively('object.property') and that implementation works well and I like.

My problem couldn't be well isolated as it only happened when I was logging in, then changing routes in Meteor.call's callback. The auth service would then from ng-if call the link function of a custom directive that had a subscribe call. If I remove the subscribe call in the directive everything worked fine and my subscriptions in the new route weren't stopped. I fixed that particular issue by wrapping my route change in a 10ms $timeout. hacky but no noticable UI problems at least.

That said if you really want I can try to reproduce it in an as isolated event as possible.

I am using angular 1.5 component syntax for parts of my app if that matters at all.

Urigo commented 8 years ago

@sean-stanley I might know your problem, have you tried this.call? http://www.angular-meteor.com/api/1.3.6/call this will wrap the callback in a digestion cycle.

Then also, if it's something else from Meteor that is outside of Angular's scope, you can use $bindToContext - http://www.angular-meteor.com/api/1.3.6/reactive-context#dbindtocontext (scroll down for an example)

Urigo commented 8 years ago

also, make sure you are using the angular-meteor-auth package as a separate package and in the latest version 0.2.1 here is how: http://www.angular-meteor.com/api/1.3.6/auth

sean-stanley commented 8 years ago

@urigo thanks for the tip about this.call it seems like that would be part of the issue you're right. I guess I missed that part of the docs I'll make that change now.

I do use $auth as a seperate package. That was a good decision breaking it up I think and I've had no problems switching from the old to new api for that except sometimes it's unclear in a controller when to use $auth.currentUser or just plain ole Meteor.user() but that's probably a discussion for another place and another time.

mattiLeBlanc commented 8 years ago

@Urigo I have removed everything that is not relevant and the result you can get from here: https://github.com/mattiLeBlanc/invoiceList

So, I am not seeing the publication stop issue right now. The reason could be that I removed the user and the ui-router resolve of currentUser. I will add that in now into a different branch so that I can test if I can get this issue to be reproduced too.

I have added the issues in the readme file in the repo. Hope you can have a look and find the same results.

ThomsCass commented 8 years ago

For me the publication stop issue seems to be resolve when I use :

resolve: {
                    currentUser: ($q) => {
                        if (Meteor.userId() == null)
                            return $q.reject('AUTH_REQUIRED');
                        if (Roles.userIsInRole(Meteor.userId(), ['user', 'sub-user']))
                            return $q.resolve();
                        else {
                            return $q.reject('AUTH_REQUIRED');
                        }
                    }
                }

Instead of

$auth.requireUser()
plraphael commented 8 years ago

Let me explain what is happening in my case.

After a successful login, the user is redirected to a page with a subscription. A normal subscription, that does not have any parameters (hence, does not use getReactively). What I'm getting on my logs is that the subscription gets "ready" and after some time, gets "stopped". If I refresh the page, the subscription does not get stopped, and everything is fine.

I tried what @ThomsCass suggested, but got the same result.

I'm using angular-meteor-auth 0.2.1 as a separated package.

ThomsCass commented 8 years ago

can we see your resolve function and the part of the controller where you do the subscription with the helpers?

arvidkastel commented 8 years ago

Just a hint on issue 4 with subscriptions stopping. I noticed that this happened to me when Meteor.user() return undefined for some short time before (I assume) the Meteor.users collection is populated. By installing the fastrender package the logged in users is always available which seemed to solve the problem. Not sure why, but it also made the routing with the ui router stop functioning.

kamilkisiela commented 8 years ago

@mattiLeBlanc Can we catch up on hangouts or something? I'm currently working on these issues.

mattiLeBlanc commented 8 years ago

@kamilkisiela I have send you an email (the the email address in your git account). I have also added a 6th helper reactivity issue about a helper not updating after mongo document change. It is in the master branch.

Urigo commented 8 years ago

@mattiLeBlanc could you please update about the current situation of the issues you specified? thanks

mattiLeBlanc commented 8 years ago

These issue have all been resolved.

ghost commented 7 years ago

Hi there,

are there still people using angular-meteor? I started a project and ran into the same issues as you guys. Thank you @mattiLeBlanc for posting the github repo invoiceList, but in the readme also questions arose. Anyone on this right now? (I am utilizing angular-meteor 1.3.11)

mattiLeBlanc commented 7 years ago

Hi,

This thread was created 6 months ago or so and i must say that most issue where resolved. Some were related to architecture and some were bugs.

Which issues are you running into right now?

On Thu, 19 Jan 2017 at 10:05 pm, der-ede notifications@github.com wrote:

Hi there,

are there still people using angular-meteor?

I started a project and ran into the same issues as you guys.

Thank you @mattiLeBlanc https://github.com/mattiLeBlanc for posting the github repo invoiceList, but in the readme also questions arose.

Anyone on this right now?

(I am utilizing angular-meteor 1.3.11)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-273746554, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCkqzImzDg_ca2LJDMM5-mFszyf8OiGks5rT0N7gaJpZM4HqiQC .

ghost commented 7 years ago

Hi @Matti LeBlanc,

thank you for responding. The issue of the reactivity not functioning properly almost subsided in the meantime when I played around with the resolve a bit. But sometimes it still just does not get the changes in $scope.helpers({}), although no „deep“ reactivity.

But also in general I was wondering whether the whole angular-meteor project is obsolete and gone.

Explanation:

Over the past 1 1/2 years or so I accompanied some projects with meteor and the question of the ui-framework was just costly since it changed a lot, from fame.us to meteoric-ionic to angular-meteor and now everyone seems to be wanting react.

So angular-meteor is still maintained and will be in the future?

Regards Thorsten

Am 20.01.2017 um 14:25 schrieb Matti LeBlanc notifications@github.com:

Hi,

This thread was created 6 months ago or so and i must say that most issue where resolved. Some were related to architecture and some were bugs.

Which issues are you running into right now?

On Thu, 19 Jan 2017 at 10:05 pm, der-ede notifications@github.com wrote:

Hi there,

are there still people using angular-meteor?

I started a project and ran into the same issues as you guys.

Thank you @mattiLeBlanc https://github.com/mattiLeBlanc for posting the github repo invoiceList, but in the readme also questions arose.

Anyone on this right now?

(I am utilizing angular-meteor 1.3.11)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-273746554, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCkqzImzDg_ca2LJDMM5-mFszyf8OiGks5rT0N7gaJpZM4HqiQC .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274071402, or mute the thread https://github.com/notifications/unsubscribe-auth/AHwdR3L3BN91miLXjlrKqke4EcXr2ZJ9ks5rULXTgaJpZM4HqiQC.

mattiLeBlanc commented 7 years ago

Well looping at the code base it is still actively being maintained. There must be a lot of people considering angular 2 , react or Vue over angular 1.5 so I guess eventually it will become stale. Not saying you can't keep using it as long as you freeze your code base at work.

For now I think it is still fine and allows for rapid development especially with angulars 1.5 components.

On Sat, 21 Jan 2017 at 12:56 am, der-ede notifications@github.com wrote:

Hi @Matti LeBlanc,

thank you for responding.

The issue of the reactivity not functioning properly almost subsided in the meantime when I played around with the resolve a bit.

But sometimes it still just does not get the changes in $scope.helpers({}), although no „deep“ reactivity.

But also in general I was wondering whether the whole angular-meteor project is obsolete and gone.

Explanation:

Over the past 1 1/2 years or so I accompanied some projects with meteor and the question of the ui-framework was just costly since it changed a lot, from fame.us to meteoric-ionic to angular-meteor and now everyone seems to be wanting react.

So angular-meteor is still maintained and will be in the future?

Regards

Thorsten

Am 20.01.2017 um 14:25 schrieb Matti LeBlanc notifications@github.com:

Hi,

This thread was created 6 months ago or so and i must say that most issue

where resolved. Some were related to architecture and some were bugs.

Which issues are you running into right now?

On Thu, 19 Jan 2017 at 10:05 pm, der-ede notifications@github.com wrote:

Hi there,

are there still people using angular-meteor?

I started a project and ran into the same issues as you guys.

Thank you @mattiLeBlanc https://github.com/mattiLeBlanc for posting the

github repo invoiceList, but in the readme also questions arose.

Anyone on this right now?

(I am utilizing angular-meteor 1.3.11)

You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub

< https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-273746554 ,

or mute the thread

< https://github.com/notifications/unsubscribe-auth/AFCkqzImzDg_ca2LJDMM5-mFszyf8OiGks5rT0N7gaJpZM4HqiQC

.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub < https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274071402>, or mute the thread < https://github.com/notifications/unsubscribe-auth/AHwdR3L3BN91miLXjlrKqke4EcXr2ZJ9ks5rULXTgaJpZM4HqiQC .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274077483, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCkq5gk-9C-_6VNAjwmgf1d0HYt914Hks5rUL0KgaJpZM4HqiQC .

ghost commented 7 years ago

Ok thank you, in js 2 years has become one whole generation...

Am 21.01.2017 um 00:41 schrieb Matti LeBlanc notifications@github.com:

Well looping at the code base it is still actively being maintained. There must be a lot of people considering angular 2 , react or Vue over angular 1.5 so I guess eventually it will become stale. Not saying you can't keep using it as long as you freeze your code base at work.

For now I think it is still fine and allows for rapid development especially with angulars 1.5 components.

On Sat, 21 Jan 2017 at 12:56 am, der-ede notifications@github.com wrote:

Hi @Matti LeBlanc,

thank you for responding.

The issue of the reactivity not functioning properly almost subsided in the meantime when I played around with the resolve a bit.

But sometimes it still just does not get the changes in $scope.helpers({}), although no „deep“ reactivity.

But also in general I was wondering whether the whole angular-meteor project is obsolete and gone.

Explanation:

Over the past 1 1/2 years or so I accompanied some projects with meteor and the question of the ui-framework was just costly since it changed a lot, from fame.us to meteoric-ionic to angular-meteor and now everyone seems to be wanting react.

So angular-meteor is still maintained and will be in the future?

Regards

Thorsten

Am 20.01.2017 um 14:25 schrieb Matti LeBlanc notifications@github.com:

Hi,

This thread was created 6 months ago or so and i must say that most issue

where resolved. Some were related to architecture and some were bugs.

Which issues are you running into right now?

On Thu, 19 Jan 2017 at 10:05 pm, der-ede notifications@github.com wrote:

Hi there,

are there still people using angular-meteor?

I started a project and ran into the same issues as you guys.

Thank you @mattiLeBlanc https://github.com/mattiLeBlanc for posting the

github repo invoiceList, but in the readme also questions arose.

Anyone on this right now?

(I am utilizing angular-meteor 1.3.11)

You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub

< https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-273746554 ,

or mute the thread

< https://github.com/notifications/unsubscribe-auth/AFCkqzImzDg_ca2LJDMM5-mFszyf8OiGks5rT0N7gaJpZM4HqiQC

.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub < https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274071402>, or mute the thread < https://github.com/notifications/unsubscribe-auth/AHwdR3L3BN91miLXjlrKqke4EcXr2ZJ9ks5rULXTgaJpZM4HqiQC .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274077483, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCkq5gk-9C-_6VNAjwmgf1d0HYt914Hks5rUL0KgaJpZM4HqiQC .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274209131, or mute the thread https://github.com/notifications/unsubscribe-auth/AHwdR1ldfOxQmahZTD9iUqyoQqWHwNyDks5rUUY5gaJpZM4HqiQC.

ghost commented 7 years ago

So, just to make sure:

In the helpers, I have to use find() instead of findOne(), since only find() will be treated reactively, right?

And in terms of getreactively: any variable can be made reactive, also variables from services for example?

Regards

Am 21.01.2017 um 00:41 schrieb Matti LeBlanc notifications@github.com:

Well looping at the code base it is still actively being maintained. There must be a lot of people considering angular 2 , react or Vue over angular 1.5 so I guess eventually it will become stale. Not saying you can't keep using it as long as you freeze your code base at work.

For now I think it is still fine and allows for rapid development especially with angulars 1.5 components.

On Sat, 21 Jan 2017 at 12:56 am, der-ede notifications@github.com wrote:

Hi @Matti LeBlanc,

thank you for responding.

The issue of the reactivity not functioning properly almost subsided in the meantime when I played around with the resolve a bit.

But sometimes it still just does not get the changes in $scope.helpers({}), although no „deep“ reactivity.

But also in general I was wondering whether the whole angular-meteor project is obsolete and gone.

Explanation:

Over the past 1 1/2 years or so I accompanied some projects with meteor and the question of the ui-framework was just costly since it changed a lot, from fame.us to meteoric-ionic to angular-meteor and now everyone seems to be wanting react.

So angular-meteor is still maintained and will be in the future?

Regards

Thorsten

Am 20.01.2017 um 14:25 schrieb Matti LeBlanc notifications@github.com:

Hi,

This thread was created 6 months ago or so and i must say that most issue

where resolved. Some were related to architecture and some were bugs.

Which issues are you running into right now?

On Thu, 19 Jan 2017 at 10:05 pm, der-ede notifications@github.com wrote:

Hi there,

are there still people using angular-meteor?

I started a project and ran into the same issues as you guys.

Thank you @mattiLeBlanc https://github.com/mattiLeBlanc for posting the

github repo invoiceList, but in the readme also questions arose.

Anyone on this right now?

(I am utilizing angular-meteor 1.3.11)

You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub

< https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-273746554 ,

or mute the thread

< https://github.com/notifications/unsubscribe-auth/AFCkqzImzDg_ca2LJDMM5-mFszyf8OiGks5rT0N7gaJpZM4HqiQC

.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub < https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274071402>, or mute the thread < https://github.com/notifications/unsubscribe-auth/AHwdR3L3BN91miLXjlrKqke4EcXr2ZJ9ks5rULXTgaJpZM4HqiQC .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274077483, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCkq5gk-9C-_6VNAjwmgf1d0HYt914Hks5rUL0KgaJpZM4HqiQC .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274209131, or mute the thread https://github.com/notifications/unsubscribe-auth/AHwdR1ldfOxQmahZTD9iUqyoQqWHwNyDks5rUUY5gaJpZM4HqiQC.

ghost commented 7 years ago

Ok, got it, getReactively just takes the place of the Session variables in Blaze.

thx

Am 26.01.2017 um 14:25 schrieb Thorsten Seckert seckert.t@googlemail.com:

So, just to make sure:

In the helpers, I have to use find() instead of findOne(), since only find() will be treated reactively, right?

And in terms of getreactively: any variable can be made reactive, also variables from services for example?

Regards

Am 21.01.2017 um 00:41 schrieb Matti LeBlanc <notifications@github.com mailto:notifications@github.com>:

Well looping at the code base it is still actively being maintained. There must be a lot of people considering angular 2 , react or Vue over angular 1.5 so I guess eventually it will become stale. Not saying you can't keep using it as long as you freeze your code base at work.

For now I think it is still fine and allows for rapid development especially with angulars 1.5 components.

On Sat, 21 Jan 2017 at 12:56 am, der-ede <notifications@github.com mailto:notifications@github.com> wrote:

Hi @Matti LeBlanc,

thank you for responding.

The issue of the reactivity not functioning properly almost subsided in the meantime when I played around with the resolve a bit.

But sometimes it still just does not get the changes in $scope.helpers({}), although no „deep“ reactivity.

But also in general I was wondering whether the whole angular-meteor project is obsolete and gone.

Explanation:

Over the past 1 1/2 years or so I accompanied some projects with meteor and the question of the ui-framework was just costly since it changed a lot, from fame.us http://fame.us/ to meteoric-ionic to angular-meteor and now everyone seems to be wanting react.

So angular-meteor is still maintained and will be in the future?

Regards

Thorsten

Am 20.01.2017 um 14:25 schrieb Matti LeBlanc <notifications@github.com mailto:notifications@github.com>:

Hi,

This thread was created 6 months ago or so and i must say that most issue

where resolved. Some were related to architecture and some were bugs.

Which issues are you running into right now?

On Thu, 19 Jan 2017 at 10:05 pm, der-ede <notifications@github.com mailto:notifications@github.com> wrote:

Hi there,

are there still people using angular-meteor?

I started a project and ran into the same issues as you guys.

Thank you @mattiLeBlanc <https://github.com/mattiLeBlanc https://github.com/mattiLeBlanc> for posting the

github repo invoiceList, but in the readme also questions arose.

Anyone on this right now?

(I am utilizing angular-meteor 1.3.11)

You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub

< https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-273746554 https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-273746554 ,

or mute the thread

< https://github.com/notifications/unsubscribe-auth/AFCkqzImzDg_ca2LJDMM5-mFszyf8OiGks5rT0N7gaJpZM4HqiQC https://github.com/notifications/unsubscribe-auth/AFCkqzImzDg_ca2LJDMM5-mFszyf8OiGks5rT0N7gaJpZM4HqiQC

.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub < https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274071402 https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274071402>, or mute the thread < https://github.com/notifications/unsubscribe-auth/AHwdR3L3BN91miLXjlrKqke4EcXr2ZJ9ks5rULXTgaJpZM4HqiQC https://github.com/notifications/unsubscribe-auth/AHwdR3L3BN91miLXjlrKqke4EcXr2ZJ9ks5rULXTgaJpZM4HqiQC .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274077483 https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274077483>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFCkq5gk-9C-_6VNAjwmgf1d0HYt914Hks5rUL0KgaJpZM4HqiQC https://github.com/notifications/unsubscribe-auth/AFCkq5gk-9C-_6VNAjwmgf1d0HYt914Hks5rUL0KgaJpZM4HqiQC> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-274209131, or mute the thread https://github.com/notifications/unsubscribe-auth/AHwdR1ldfOxQmahZTD9iUqyoQqWHwNyDks5rUUY5gaJpZM4HqiQC.

mattiLeBlanc commented 7 years ago

I think FindOne() and Find().fetch() both give the same reactivity. FindOne just returns one and Find() returns a cursor.

ghost commented 7 years ago

ok, then it was about the getReactively() why it didn’t work. thx.

Am 27.01.2017 um 11:07 schrieb Matti LeBlanc notifications@github.com:

I think FindOne() and Find().fetch() both give the same reactivity. FindOne just returns one and Find() returns a cursor.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1264#issuecomment-275630775, or mute the thread https://github.com/notifications/unsubscribe-auth/AHwdRz1f0XAd-sY0jNcH2WRdZ9152vKkks5rWcH-gaJpZM4HqiQC.