| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
ui-actions, ui-dialog, ui-html-editor, ui-input, ui-menu-tree, ui-no-data, ui-notifications, ui-page-content, ui-page-header, ui-search, ui-tree, ui-upload, ui-wait-on
Non-Frontend
You just use thymeleaf and not angularjs, you can define controllers in src/main/java/net/bndy/wf/controller and thymeleaf templates in src/main/resources/templates.
AngularJS
You can implement api in src/main/java/net/bndy/wf/modules and angularjs controllers in src/main/resources/static/apps/admin/modules. Each feature should include one html file and one js file.
Call API (appService service)
[ajaxGet|ajaxSave|ajaxDelete]('/api/...'[, data]) to request resources, ajaxSave instead of ajaxPut and ajaxPost which will call ajaxPut or ajaxPost according to data.id.
Dialog & Notification (appDialog service)
[loading|wait|clearWait|success|info|warning|error|alert|confirm|confirmDeletion|show|showWin]
International (Languages)
You can define both of backend languages and frontend languages in src/main/resources/i18n/. And you can use it in AngularJS modules directly.
Examples:
welcome.message=Hi, {0}! in i18n/messages.properties
<!-- call in AngularJS -->
<span ng-bind="{welcome.message|translate:[name]}"></span>
<!-- call in Thymelefa -->
<span th:text="#{welcome.message(${name})}"></span>| Back | FazBrowse Home | New Git URL |