These are chat archives for angular/material

3rd
Oct 2016
Varun Goel
@varung-optimus
Oct 03 2016 12:38

I am trying to add a Copy Paste functionality (with events) in a web application developed in Angular 2.

The idea is as follows:

User goes in 1 panel and selects which component he wants to copy.
User goes into another panel and press paste.
The aim is to be able to create a clone of the original component (with style, objects, child components etc.)
Much appreciate your guidance on this

pmulac
@pmulac
Oct 03 2016 13:10
I've been trying to use ngc/AOT compilation in my angular 2 app using webpack, but the compilation process breaks on the material components. I get errors like "window is not defined". Curious if anyone else has run into this?