Commit bf5c13bc authored by dmacfarlane's avatar dmacfarlane
Browse files

Update to angular 2.0.0-rc.1

parent 180f8343
Loading
Loading
Loading
Loading
+26 −17
Original line number Diff line number Diff line
.idea
typings
node_modules
jspm_packages
link-checker-results.txt
**/*npm-debug.log.*
app/**.js
app/**.js.map
_test-output
_temp
# See http://help.github.com/ignore-files/ for more about ignoring files.

!**/*e2e-spec.js
!karma*.js
!protractor*.js
!wallaby.js
# compiled output
/dist
/tmp

build
**/*.sh
**/.DS_Store
# dependencies
/node_modules
/bower_components

# IDEs and editors
/.idea

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

#System Files
.DS_Store
 No newline at end of file
+1 −2
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ To install and start the demo application:
    git clone https://github.com/dmacfarlane/ng2-mentions.git
    cd ng2-mentions
    npm install
    npm start
    ng serve

### Usage

@@ -40,4 +40,3 @@ Where `items` is a string array of the items to suggest. For example:
- Configurable limit on number of items shown via config
- Load items via http (config number of chars before search)
- Styled menu items
- Tests...

angular-cli-build.js

0 → 100644
+17 −0
Original line number Diff line number Diff line
/* global require, module */

var Angular2App = require('angular-cli/lib/broccoli/angular2-app');

module.exports = function(defaults) {
  return new Angular2App(defaults, {
    vendorNpmFiles: [
      'systemjs/dist/system-polyfills.js',
      'systemjs/dist/system.src.js',
      'zone.js/dist/*.js',
      'es6-shim/es6-shim.js',
      'reflect-metadata/*.js',
      'rxjs/**/*.js',
      '@angular/**/*.js'
    ]
  });
};

angular-cli.json

0 → 100644
+25 −0
Original line number Diff line number Diff line
{
  "project": {
    "version": "1.0.0-beta.0",
    "name": "ng2-mentions"
  },
  "apps": [
    {"main": "src/main.ts", "tsconfig": "src/tsconfig.json"}
  ],
  "addons": [],
  "packages": [],
  "e2e": {
    "protractor": {
      "config": "config/protractor.conf.js"
    }
  },
  "test": {
    "karma": {
      "config": "config/karma.conf.js"
    }
  },
  "defaults": {
    "prefix": "app",
    "sourceDir": "src"
  }
}

app/app.component.ts

deleted100644 → 0
+0 −33
Original line number Diff line number Diff line
import {Component} from 'angular2/core';
import {Mention} from '../mention/mention';
import {COMMON_NAMES} from './common-names';
import {TinyMCE} from './tinymce.component';

@Component({
    selector: 'my-app',
    template: `
    <h1>Angular 2 Mentions</h1>
    <p>Simple Angular2 mentions inspired by <a href="http://jeff-collins.github.io/ment.io/#/">Ment.io</a>.</p>
    <p style="color:grey">Supports auto-complete for mentions in text input fields, text areas,
    and content editable fields. Try entering some @names below.</p>

    <h3>Minimal</h3>
    <input [mention]="items" class="form-control" type="text">

    <h3>Textarea</h3>
    <textarea [mention]="items" class="form-control" cols="60" rows="4"></textarea>

    <h3>Content Editable</h3>
    <div [mention]="items" class="form-control" contenteditable="true" style="border:1px lightgrey solid;min-height:88px"></div>

    <h3>Embedded Editor</h3>
    <tinymce></tinymce>

    <br><p style="color:grey">ng2-mentions on <a href="">Github</a></p>
    <a href="https://github.com/dmacfarlane/ng2-mentions"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"></a>
    `,
    directives: [Mention, TinyMCE]
})
export class AppComponent {
  items:string [] = COMMON_NAMES;
}
Loading