From the course: SharePoint Framework for Developers: 5 SPFx and Angular

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Create a test harness

Create a test harness

From the course: SharePoint Framework for Developers: 5 SPFx and Angular

Start my 1-month free trial

Create a test harness

- So at this point I have full support for angular aliments in my project, great. But we don't have anywhere to test it, in fact, we haven't written logictive and build it. Let's do that next. So again the intent of angular aliments is to run it as plain HTML. So let's go ahead and add our test harness, so I'm going to create a folder called plain HTML and in here I will drop a file called index.HTML and the intent is that in this file we're going to bundle up everything in a file called ship.js. This is plain HTML and we are going to be able to run our angular aliments component using the HTML tag we referenced, and here as you can see, we're using simple HTML vernacular to bind to the at import which remember, was called display text. Let's quickly glance at the component one more time. Let's go into source, let's go into elements component.ts. Here you see that the input is display text, and the output is clicked, okay. Come back to index.HMTL, the attribute is display text then…

Contents