diff options
author | Manolo Carrasco <manolo@vaadin.com> | 2016-05-09 14:38:31 +0200 |
---|---|---|
committer | Manolo Carrasco <manolo@vaadin.com> | 2016-05-14 07:55:28 +0200 |
commit | c366a5e16b62db3dbb4b2ad0b1870b9689ad753f (patch) | |
tree | 7639452410f239322566ee92c25328b5a78bc52a /docs | |
parent | 797ef35fd1d72fec31390444e4841038936f6b03 (diff) | |
download | vaadin-core-c366a5e16b62db3dbb4b2ad0b1870b9689ad753f.tar.gz vaadin-core-c366a5e16b62db3dbb4b2ad0b1870b9689ad753f.zip |
Some improvements in doc related with ng2
Diffstat (limited to 'docs')
-rw-r--r-- | docs/angular2.adoc | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/docs/angular2.adoc b/docs/angular2.adoc index a1a2364..eb4d373 100644 --- a/docs/angular2.adoc +++ b/docs/angular2.adoc @@ -9,20 +9,23 @@ layout: page While Vaadin Elements are built using Polymer, they also contain directives to enable seamless usage within Angular 2 applications. This page assumes that you already have an Angular 2 application setup ready. + If you need help with the project setup, you should follow the https://angular.io/docs/ts/latest/quickstart.html[Angular 2 Quickstart] guide. == Installation -Although Angular 2 dependecies are typically installed via https://www.npmjs.com/[npm], Vaadin Elements require installation with http://bower.io[Bower]. -To install a Vaadin Core Element, you should run the following command in your project directory (replace the `[element-name]` part with the actual name of the element). - [NOTE] Angular 2 support was introduced in `1.1.0-alpha1` versions of each element. + For element versions `1.1.0-beta2` or newer, use Angular version `2.0.0-rc.0`. + For element versions `1.1.0-alpha1 to 1.1.0-beta1`, use Angular version `2.0.0-beta.16/17`. + +Although Angular 2 dependecies are typically installed via https://www.npmjs.com/[npm], Vaadin Elements require installation with http://bower.io[Bower]. +To install a Vaadin Core Element, first you should setup bower in your project, and then you need to run the following command in your project directory (replace the `[element-name]` part with the actual name of the element). + [source,bash] ---- +bower init bower install --save vaadin-[element-name]#1.1.0-beta2 ---- @@ -46,7 +49,9 @@ Add the following `packages` entry for `bower_components` to your configuration [source,javascript] ---- System.config({ - map: 'bower_components': 'bower_components', + map: { + 'bower_components': 'bower_components' + }, packages: { 'bower_components': { defaultExtension: 'js' @@ -69,6 +74,9 @@ window.addEventListener('WebComponentsReady', function() { [NOTE] If you see errors about missing behaviors in the console, please visit this https://github.com/vaadin/vaadin-core-elements/issues/46[known issue]. +[NOTE] +If compilation fails due to implicitly declared vars in any dependency, set the property [propertyname]#noImplicitAny# to `false` in your [filename]#tsconfig.json# file. + Now you’re all set to use the element inside your Angular 2 application. == Importing |