mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
File list + Rest API
This commit is contained in:
@@ -7,6 +7,7 @@ import {AuthRouterOutlet} from "./components/AuthRouterOutlet";
|
||||
import {SideMenu} from "./components/core/SideMenu";
|
||||
import {AppNavBar} from "./components/core/navbar.component";
|
||||
import {FormDesignToolbar} from "./components/form-design-toolbar.component";
|
||||
import {SingleComponent} from "./single.component";
|
||||
import {HomeView} from "./components/home.view";
|
||||
import {FormsView} from "./components/forms.view";
|
||||
import {Page1View} from "./components/page1.view";
|
||||
@@ -19,7 +20,7 @@ import {Page2View} from "./components/page2.view";
|
||||
providers: [FormService]
|
||||
})
|
||||
@RouteConfig([
|
||||
{path: '/', name: 'Home', component: HomeView, useAsDefault: true},
|
||||
{path: '/', name: 'Home', component: SingleComponent, useAsDefault: true},
|
||||
{path: '/login', name: 'Login', component: Login},
|
||||
{path: '/forms', name: 'Forms', component: FormsView},
|
||||
{path: '/page1', name: 'Page1', component: Page1View},
|
||||
|
14
demo-shell-ng2/app/single.component.ts
Normal file
14
demo-shell-ng2/app/single.component.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {Component} from 'angular2/core';
|
||||
|
||||
@Component({
|
||||
selector: 'my-app',
|
||||
templateUrl: 'app/template/single.component.html'
|
||||
})
|
||||
|
||||
export class SingleComponent {
|
||||
target: string = 'http://192.168.99.100:8080/alfresco/service/api/upload';
|
||||
multi: string = 'true';
|
||||
accept: string ='image/*';
|
||||
droppable: boolean = false;
|
||||
|
||||
}
|
8
demo-shell-ng2/app/template/single.component.html
Normal file
8
demo-shell-ng2/app/template/single.component.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<div>
|
||||
<div>
|
||||
<file-upload accept="{{accept}}" droppable="{{droppable}}" target="{{target}}" multi="false" >Choose File</file-upload>
|
||||
</div>
|
||||
<div >
|
||||
<alfresco-file-list></alfresco-file-list>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user