Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- italic.directive("tag", ['$timeout', function($timeout){
- return{
- scope: {
- tagWidths: '=tagWidths'
- },
- link: function(scope, element, attrs){
- $timeout(function () {
- scope.tagWidths.push(element[0].offsetWidth);
- });
- }
- }
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement