Create php MVC app. Create custom directive in angularjs

Home » Tutorials » PHP+MySQL » Create php MVC app. Create custom directive in angularjs

Today I will tell you how to create custom directive in angularjs. In our app custom directive will be html from for edit user personal info.

Angular “learns” browsers new tags or attributes with directives. It has a large set of build-in directives, which we have already work. For example, ng-click.
Custom (users) directives can be one of several types: E – elements (tags), A – attributes.
Directive settings are made with .directive() angular method, which return object with directive settings. You can read about custom directives in details in these articles:
https://metanit.com/web/angular/2.12.php
https://code.tutsplus.com/ru/tutorials/mastering-angularjs-directives–cms-22511

Подписаться на рассылку

Будьте в курсе - получайте последние статьи на свой email

Ваша подписка успешно оформлена

Pin It on Pinterest

Share This