mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Clean and minimal DocumentList component implementation
This commit is contained in:
@@ -6,7 +6,7 @@ import {AuthRouterOutlet} from './components/AuthRouterOutlet';
|
||||
import {HomeView} from './components/home.view';
|
||||
import {Page1View} from './components/page1.view';
|
||||
import {Page2View} from './components/page2.view';
|
||||
import {AlfrescoService} from '../../ng2-components/ng2-alfresco-documentslist/src/alfresco.service';
|
||||
import {AlfrescoService} from 'ng2-alfresco-documentlist/component';
|
||||
|
||||
@Component({
|
||||
selector: 'my-app',
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import {Component} from 'angular2/core';
|
||||
import {DocumentList} from '../../../ng2-alfresco-documentslist/src/components';
|
||||
import {DocumentList} from 'ng2-alfresco-documentlist/component';
|
||||
|
||||
@Component({
|
||||
selector: 'home-view',
|
||||
|
@@ -1,5 +1,4 @@
|
||||
import {Component} from 'angular2/core';
|
||||
import {HelloWorld} from '../../../ng2-alfresco-documentslist/src/components';
|
||||
|
||||
@Component({
|
||||
selector: 'page2-view',
|
||||
@@ -7,11 +6,9 @@ import {HelloWorld} from '../../../ng2-alfresco-documentslist/src/components';
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h2>Page 2</h2>
|
||||
<hello-world></hello-world>
|
||||
</div>
|
||||
</div>
|
||||
`,
|
||||
directives: [HelloWorld]
|
||||
`
|
||||
})
|
||||
export class Page2View {
|
||||
|
||||
|
@@ -3,7 +3,7 @@ import {AppComponent} from './app.component';
|
||||
import {ROUTER_PROVIDERS} from 'angular2/router';
|
||||
import {HTTP_PROVIDERS} from 'angular2/http';
|
||||
import {Authentication} from './services/authentication';
|
||||
import {ALFRESCO_PROVIDERS} from '../../ng2-alfresco-documentslist/src/components';
|
||||
import {ALFRESCO_PROVIDERS} from 'ng2-alfresco-documentlist/component';
|
||||
|
||||
bootstrap(AppComponent, [
|
||||
ROUTER_PROVIDERS,
|
||||
|
@@ -33,7 +33,7 @@
|
||||
System.config({
|
||||
map: {
|
||||
'ng2-uploader': 'node_modules/ng2-uploader',
|
||||
'ng2-alfresco': 'node_modules/ng2-alfresco'
|
||||
'ng2-alfresco-documentlist': 'node_modules/ng2-alfresco-documentlist'
|
||||
},
|
||||
packages: {
|
||||
app: {
|
||||
@@ -43,7 +43,7 @@
|
||||
'ng2-uploader': {
|
||||
defaultExtension: 'js'
|
||||
},
|
||||
'ng2-alfresco': {
|
||||
'ng2-alfresco-documentlist': {
|
||||
defaultExtension: 'js'
|
||||
}
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@
|
||||
"es6-shim": "^0.35.0",
|
||||
"font-awesome": "^4.5.0",
|
||||
"jquery": "^2.2.2",
|
||||
"ng2-alfresco-documentslist": "file:../ng2-components/ng2-alfresco-documentslist",
|
||||
"ng2-alfresco-documentslist": "file:../ng2-components/ng2-alfresco-documentlist",
|
||||
"ng2-uploader": "denisvuyka/ng2-uploader",
|
||||
"reflect-metadata": "0.1.2",
|
||||
"rxjs": "5.0.0-beta.2",
|
||||
|
Reference in New Issue
Block a user