mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* #1167 document-list improvements - allow setting custom root path - document-list module now re-exports datatable module (no need importing it separately if document-list is already used) - documentation updates and fixes * readme updates and unit test * user-info fixes and performance improvements - setup live reloads for user-info (demo shell) - optimise user-info template (single *ngIf, [mdl] directive for ‘user-profile-lists’ instead of CPU-hungry `ngAfterViewChecked`)
Alfresco Angular 2 Components
Node
To correctly use this demo check that on your machine is running Node version 5.0.0 or higher.
Local build
1 Install dependencies
npm install
2 Fast build and watch for dev purposes
npm start
start
script also includes live reload and watchers for all the.ts
files. TypeScript watchers are also configured fornode_modules
folder within demo shell and provide live reload for all the component libraries as well.
Development branch build
If you want to run the demo shell with the latest change from the development branch, use the following command from the /script folder:
./npm-clean.sh
./start-linked.sh -install
###Multi-language
To support a new language you need to create your language file (.json) and add it to i18n/
folder.
{
"username" : "Username",
"input-required-message": "Required",
"input-min-message": "Your username needs to be at least 4 characters.",
"login-button": "Login"
}
Directory structure:
.
├── i18n/
│ ├── en.json
│ ├── it.json
│ └── fr.json