From 6cb98e516f02075f50f7dc7597e97361df41d0c7 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 15 Apr 2016 11:30:10 +0100 Subject: [PATCH] Simple list component with array watching --- demo-shell-ng2/app/components/page2.view.ts | 4 ++++ .../app/web-components/simple-list/simple-list.html | 10 +++++++--- demo-shell-ng2/bower.json | 4 +++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/demo-shell-ng2/app/components/page2.view.ts b/demo-shell-ng2/app/components/page2.view.ts index 96fd69471a..8bcebc793c 100644 --- a/demo-shell-ng2/app/components/page2.view.ts +++ b/demo-shell-ng2/app/components/page2.view.ts @@ -12,6 +12,10 @@ import {Component} from "angular2/core";
+

+ List below is a web component bound to array of items coming from angular.
+ Add/remove buttons control angular array and web component reacts on changes. +

diff --git a/demo-shell-ng2/app/web-components/simple-list/simple-list.html b/demo-shell-ng2/app/web-components/simple-list/simple-list.html index fee3478071..6320bd686f 100644 --- a/demo-shell-ng2/app/web-components/simple-list/simple-list.html +++ b/demo-shell-ng2/app/web-components/simple-list/simple-list.html @@ -1,3 +1,6 @@ + + +