AngularJS_Basics3_Invoke_Directive_Using_Comment

1
2
<!DOCTYPE html>
<html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
output:
******
Made by a directive!

Note: We've added the replace property in this example, otherwise the comment would be invisible.

Note: You must add the value "M" to the restrict property to be able to invoke the directive from a comment.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.