Almog
Almog

Reputation: 2837

Does Angular.JS add CSS styles or changes existing styles?

This is a weird one we're currently porting an existing CakePHP app to Angular.JS, the CSS is the same and overall everything looks the same but there is small changes for example the font type or the size, also noticing small difference in spacing, padding and margins.

Does Angular add CSS style or overwrite existing styles?

Upvotes: 0

Views: 1307

Answers (2)

Brad Green
Brad Green

Reputation: 1296

Angular does add a few CSS styles, but nothing that would account for what you're seeing.

In particular, to hide elements while they're loading through an ngCloak directive, Angular adds a class to set the display property to 'none'.

You can see Angular's CSS in https://github.com/angular/angular.js/blob/master/css/angular.css.

Upvotes: 1

Christian Westman
Christian Westman

Reputation: 3005

AngularJS does not add any style elements nor does it add or remove any inline styles. It does however add classes to DOM elements such as ng-scope, ng-binding..etc all with the "ng" prefix.

Upvotes: 2

Related Questions