Files
freeCodeCamp/guide/russian/miscellaneous/creating-a-new-directive-in-angular/index.md
2018-10-16 21:32:40 +05:30

14 lines
922 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Creating a New Directive in Angular
localeTitle: Создание новой директивы в угловом
---
Вы помните пользовательские директивы от формирования с угловым курсом? Вы также можете создать специальную директиву!
```
>> yo angular-fullstack:directive newdirective
```
И если вам нужен шаблон html для вашей настраиваемой директивы (возможно, вы просто делаете директиву для очистки вашего HTML-кода), скажите ему сделать html-файл, когда он вам подскажет, и вы сможете включить содержимое этого шаблона в любом месте вашего приложения:
```
<newdirective></newdirective>
```