css - Import Yeoman/Angularjs application -


I am trying to search for answers to this but do not really know how to search. I would like to know if there is any way that I can make a "component" in AngularJS, which contains instructions, css etc. and use that component in any other project?

For example, I would like to create an angular application in which the base layout of our company is defined in CSS / Less and also includes Toolbox of Customized Control / Directives. I would like to create a new application in AngularJS and then import the "Base" application.

Help much appreciated.

In fact, all you have to do, all instructions, controllers, services etc. should be taken, Move them to a different folder, and place them under the same name space.

After that, to reuse that component in another angular application, you should normally Those JS / CSS files need to be referenced, and set the project to the corner Be sure to declare time as dependency.

This is essentially - angular makes it very easy to declare the dependency for you and to reuse the code.

If you want, you can change your custom component You can also try to manage and use bowers (although this is the company code, which can be set based on your options). If so, then there is more detailed information about it.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -