Tuesday, September 2, 2014

Angular JS and Style tag in Internet Explorer.

I had this problem with AngularJs and Internet explorer. So here is the problem.



Internet explorer validating all html tags and it recognize this as a invalid style tags. So the fix is here.

HTML



JAVA SCRIPT - App.js


    $scope.GetStyle = function (t) {
        return "background-color: "+ t +";";
    };
    


Happy Coding Fellows!