Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I agree with the points other folks have said so far; its very easy to split things up into separate modules and have the modules depend on each other with regular AngularJS stuff. Then your JS code can be split into whatever files and directory trees you prefer. </p> <p>Just thought I'd mention what we're doing in the open source <a href="http://hawt.io/" rel="nofollow">hawtio</a> project which is based on AngularJS. We've taken modularity to a bit of an extreme :) hawtio uses <a href="http://hawt.io/developers/plugins.html" rel="nofollow">plugins</a> which can be discovered at runtime in the running server (e.g. deploy and undeploy UI functions at runtime). So based on some REST query or JMX detection we can dynamically and or remove plugins.</p> <p>e.g. here are all our <a href="https://github.com/hawtio/hawtio/tree/master/hawtio-web/src/main/webapp/app/" rel="nofollow">current default plugins</a></p> <p>In terms of layout, each plugin has its own directories for code (js), html partials (html) and anything else (e.g. css / img directories) which makes it easy to keep things nice and modular. e.g. here's the <a href="https://github.com/hawtio/hawtio/tree/master/hawtio-web/src/main/webapp/app/camel" rel="nofollow">camel plugin</a> which has its own html, js and img folders.</p> <p>Then a specific plugin defines its own AngularJS module, directives, filters and which can then depend on other modules.</p> <p>We've not come up with terribly many helpful <a href="https://github.com/hawtio/hawtio/blob/master/doc/CodingConventions.md" rel="nofollow">naming conventions</a> for the source files so far though :). We find writing a file per controller seems simplest; but other than the fooPlugin.ts file and the helpers.ts file (for general module specific helper functions) we've not yet found any other meaningful naming conventions so far.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload