This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular.widget): Allow widgets to be styled in IE8 and below
Closes #584
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:ng="http://angularjs.org" xmlns:my="http://mynamespace.org"> | ||
<head> | ||
<style> | ||
my\:time {color:#00f;display:block;border:1px solid #ccc;background-color:#ddd;} | ||
</style> | ||
<script src="../build/angular.js" ng:autobind></script> | ||
<script> | ||
angular.widget('my:time', function(compileElement){ | ||
compileElement.css('display', 'block'); | ||
return function(linkElement) { | ||
function update() { | ||
linkElement.text('Current time is: ' + new Date()); | ||
setTimeout(update, 1000); | ||
} | ||
update(); | ||
}; | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<my:time></my:time> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters