Skip to content

Angular director so that angular variables can be evaluated inside inline style blocks.

License

Notifications You must be signed in to change notification settings

deanmcpherson/angular-inline-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

#Angular variables inside style blocks

This small directive allows angular variables to be evaluated into style blocks.

e.g.

<style>
	body {
		background-color:{{bgColor}};
	}
</style>

With the variable bgColor available in some parent scope.

##Usage

  • Include dmStyle.js
  • Add dm.style as a dependency to your app module.

Thats it! This will automatically start compiling inline CSS.

About

Angular director so that angular variables can be evaluated inside inline style blocks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published