Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 4b2e077

Browse files
committed
Add data- prefix for indexed directives
1 parent 9c7f8a5 commit 4b2e077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎AngularJS-sublime-package.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def add_indexed_directives(self):
313313
indexed_attrs = [
314314
tuple([
315315
'ngDir_' + self.definitionToDirective(directive) + '\tAngularJS',
316-
self.definitionToDirective(directive)+'="$1"$0'
316+
('data-' if self.settings.get('enable_data_prefix') else '') + self.definitionToDirective(directive)+'="$1"$0'
317317
]) for directive in indexes if re.match('directive:', directive[0])
318318
]
319319
return list(set(indexed_attrs))

0 commit comments

Comments
 (0)