freeCodeCamp/guide/russian/miscellaneous/creating-a-new-directive-in.../index.md

14 lines
922 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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