Skip to content

Commit

Permalink
adding jspm-based example
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 29, 2015
1 parent 8cd0e66 commit c269c2e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions components.js
@@ -0,0 +1 @@
exports.HelloWorld = require('./lib/HelloWorld').HelloWorld;
2 changes: 1 addition & 1 deletion example/index.html
Expand Up @@ -18,7 +18,7 @@
},
map: {
'ng2-translate': 'node_modules/ng2-translate',
'angular2-library-example': 'node_modules/angular2-library-example/lib/angular2-library-example',
'angular2-library-example': 'node_modules/angular2-library-example',
'rxjs': 'node_modules/rxjs'
}
});
Expand Down
5 changes: 1 addition & 4 deletions example/src/App.ts
Expand Up @@ -3,10 +3,7 @@
import {Component} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';

import {HelloWorld} from 'angular2-library-example';
//import {HelloWorld} from './HelloWorld';
//import {HelloWorld} from '../jspm_packages/npm/angular2-library-example@1.0.2/lib/components/HelloWorld';

import {HelloWorld} from 'angular2-library-example/components';
import {TranslateService, TranslatePipe} from 'ng2-translate/ng2-translate';


Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -2,6 +2,7 @@
"name": "angular2-library-example",
"version": "1.0.2",
"description": "An example repository for building your own Angular 2 library",
"main": "angular2-library-example.js",
"scripts": {
"watch": "tsc -p src -w",
"build": "rm -rf lib && tsc -p src"
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/angular2-library-example.ts

This file was deleted.

0 comments on commit c269c2e

Please sign in to comment.