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