Thai Dinh Tam
Thai Dinh Tam
would you please give me more samples how to use reload-page ?
``` lang-none in template In controller SomeService.updateSomething({},function(data){ $scope.reloadPageFlag = true; }) Above code doesn't reload page, when updateSomething callback is called. ```
It was my mistake. repload-page = "reloadPageFlag", misspelling. repload. However i found one more issue. reload page doesn't work several times.... It works only one time.
In your code, I saw it you already toggle it false. ``` lang-none $scope.$watch('reloadPage', function(newVal, oldVal) { if($scope.passive === 'true') { return; } if(newVal === true && oldVal === false)...
@Dogfalo , Welcome on meteor. The main topic here is that materialize is not working for dynamically added elements in the DOM. E.g In collapsible, it's working for 3 ``elements...
No animation works. @rralian , how did you solve the problem? Button animation doesn't work.
@danii1 , It's working. However it doesn't work when template is updated run time. {{#each questions}} button class="waves-effect waves-light btn"> answer me /button {{/each}} questions are updated(one questions is added)...
@danii1 , yes your solution will work. However, it means that "rendered" logic will run again and again for each loop. E.g $('.collapsible').collapsible will run X times if it has...
Template code for collapsible looks like below. `` `` {{#each contents}} `{{>myLITemplate}}` {{/each}} `` `` `` `` `{{Header}}` `{{Content}}` `` `` In Javascript. what you mean is. Template.myLITemplate.rendered = function()...