Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages