stephanrauh / AngularFaces

AngularFaces is a JSF library making it easy to integrate AngularJS code.
https://www.angularfaces.net
Apache License 2.0
90 stars 39 forks source link

Add an option to suppress the automatic include of main.js #51

Closed stephanrauh closed 9 years ago

stephanrauh commented 9 years ago

By default, every AngularJS ng-controller tag triggers an include of main.js. This is not always desired, so it should be possible to switch this feature off.

stephanrauh commented 9 years ago

Now you can switch off the feature completely by adding a context parameter to the web.xml:

    <context-param>
        <param-name>AngularFaces.includeMainJS</param-name>
        <param-value>false</param-value>
    </context-param>

Alternatively, you can switch it off on a per-controller basis by adding angularJSFile="none".

stephanrauh commented 9 years ago

done