.my-div:before {
content: url('/pathToMyImage/image.png.png');
position: absolute;
}
I am using Angular JS and the image is supposed to be dynamic in nature. Lets say its path is stored in the $scope.path
variable.
For example:
$scope.path="/pathToMyImage/image.png";
How do I pass the value of $scope.path
to set the content dynamically?