Linked Questions
18 questions linked to/from AngularJS: How to run additional code after AngularJS has rendered a template?
38
votes
6
answers
38k
views
How to trigger a method when Angular is done adding scope updates to the DOM?
I am looking for a way to execute code when after I add changes to a $scope variable, in this case $scope.results. I need to do this in order to call some legacy code that requires the items to be in ...
19
votes
7
answers
28k
views
How to apply jquery after AngularJS partial template is loaded
I have a simple website that implements jQuery in order to create a Slider with some images in the Index.html top banner.
Now, I want to use AngularJS so I'm breaking the HTML code into separate ...
8
votes
1
answer
20k
views
Jquery calls not working in $viewContentLoaded of Angular
Unable to call jquery functions in $viewContentLoaded event of Angular controller, here is the code for the same.
$scope.$on('$viewContentLoaded', function() {
jQuery.growlUI('Growl Notification',...
10
votes
4
answers
10k
views
How to invoke a function in an Angular directive after the child nodes have been processed?
I'm trying to use an Angular JS directive to center the contents of a div.
This is the simplified version of the template:
<div id="mosaic" class="span12 clearfix" s-center-content>
<...
8
votes
2
answers
10k
views
Angularjs: How to scroll the page after ng-show shows hidden elements?
I have a list of hidden items.
I need to show the list and then scroll to one of them with a single click.
I reproduced the code here: http://plnkr.co/edit/kp5dJZFYU3tZS6DiQUKz?p=preview
As I see in ...
13
votes
1
answer
21k
views
How to call a JQuery function from AngularJS when a view is changed
I'm new to AngularJS, and I'm dealing with a problem while implementing jQuery custom content scroller into my application.
I need the scroller to update, when I update the content with Angular, for ...
4
votes
1
answer
4k
views
Custom directive models do not work in ng-switch
I am trying to use AngularJS to provide a toggable dropdown list, where the selection of various options will trigger different lists. ng-switch seemed like the right way to do it, but my ng-model is ...
3
votes
1
answer
10k
views
AngularJS - Any way to call javascript after the template is linked?
I'm trying to use a jQuery plugin (Plupload) with AngularJS. I have created a directive that will be my file upload "widget". The directive looks like this (The code in the link function is a very ...
0
votes
1
answer
3k
views
how to load script when partial loading in angular.js
I am using angular.js for my project and adding script in a partial or view but it is not working. I want to include script for single partial only so i don't want to add that script on the index page....
1
vote
1
answer
2k
views
How to know Angular2 application has finished rendering
Using JS, I need to wait until an Angular2 application has finished to initialize all these data and render the dom completely.
It should be done from outside the Angular2 application. I'm actually ...
1
vote
1
answer
1k
views
pickadate.js not working at all
Trying to learn how to use this plugin, but I can't seem to make anything work at all. Can someone point me in the right direction? This is a laravel project, but that shouldn't make much difference.
...
0
votes
1
answer
1k
views
Using an Angular directive to inject a JQueryMobile listview template
Briefly - How to inject markup for JQuery Mobile widgets by way of a directive and have the markup actually convert into a JQM widget.
Plnkr: http://plnkr.co/edit/3AZV93mktxPAPwU4JKgM?p=preview
...
1
vote
1
answer
581
views
customSelect() select box not resetting with angular
I'm having some problems using the customSelect() jquery plugin with Angular. I'd like to reset my form, but unfortunately, while the angular stuff works, the custom select doesn't reflect the change ...
1
vote
0
answers
385
views
Manipulate DOM after Angular has retrieved content via $http and added it to a partial view template
I looked at various similar questions such as this one, this one, this one, this one, and this one that failed to provide a solution to my problem before hitting on a solution myself. However, it ...
0
votes
1
answer
161
views
OnModelChange after view is rendered
I have a Model that is periodically changed. Every time it is changed and view is rerendered (according to bindings) I need to execute some jQuery code. What is the right place to put this code?