You should look at 'ng-class' it allows you to apply a (or multiple)
class(es) to a node. You can access model vars or functions in the
controller to define when they are added/not


On Sat, Dec 21, 2013 at 1:55 PM, biloki <[email protected]> wrote:

> Hi everyone,
>
> I hava never written app with Angular.js, normally with backbone and the
> native javascript app, I control the DOM et CSS directly in code
> javasscript with jquery. But I see the remark in Angular that we shouldn't
> control DOM and CSS in controller. So in Angular, to control the DOM and
> add/remove class css in any tag, how to write the code ? How to control the
> DOM in angular ?
>
> Thank you very much
>
> --
> 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 http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Tony Polinelli

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to