I have two controllers, CompositionsController and CritiqueController and they use a service called Critiques to share an array object. I want to display the updated array object on the front-end. I console.err out the innerds of the array and you see that it updates, but does not update on the front-end. What am I doing wrong?
Also, side note, is it appropriate to have services that fulfill one function, to ensure that an array of critques are shared?
myApp.factory('Critiques', function () {
return new Array();
});
Here is test of my application: http://plnkr.co/edit/3Wu7UH?p=preview
Also, to test my application, you must click the Capitalization button and then on a span tag. , which will add a model object called 'critique' into my array of 'critiques'.
Thank you for any kind of help or suggestions I should make.