Hi There,

I am fairly new to angular, but am getting there.

One thing I would like to do, is call some of my own code whenever angular 
renders or re-renders part of the page.

Why I am doing this, is that I have a set of my own extensions to css, to 
extend its functionality.  I am using JQuery, and am wanting to call my own 
render event whenever content is updated, or the screen is resized.

For example, one of my functions is used to scale text to fit the 
dimensions of a given div (tagged as "resizeText" as its class), using code 
similar to the solution given in:

http://jsfiddle.net/c9YNz/2/

So, what I would like to do, is call my code any time angular renders or 
re-renders content.

Or is it possible to do this with directives?  E.g., I could create a 
directive to do something with the class "resizeText" - e.g., I would need 
to be able to detect the width and height of the div, and iterate through 
different size fonts until we get the best match as in the solution above.

Any suggestions on how I might do this, would be greatly appreciated!

Cheers,

Scott

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to