angular.js - What is the difference between angular directives and plugins?
PHP中文网
PHP中文网 2017-05-15 17:09:20
0
2
569

What is the difference between angular directives and plug-ins?

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
仅有的幸福

Angular is dependent on injection. Generally, a plug-in is a module of angular.module, and then defines some services or instructions (maybe more than one), and then uses it, such as angular.module("myApp",["ngRoute"]) introduced like this, so generally a plug-in (or a module) is Generated by a combination of multiple instructions, multiple services, etc. .

刘奇

angular.module is the import of the overall module and the dependency injection of provider, server and other plug-ins, which means that the API exposed by the module can be used by the app.
The directive is also part of the overall module and is used in the view part of the mvc in the app

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template