O'Reilly logo

Learning Angular for .NET Developers by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Overriding templates in testing

Sometimes it is necessary to override templates during testing. Angular has now simplified overriding templates, as follows:

TestBed.overrideTemplate(BookComponent,   '<h1>{{book.title}}</h1>');   

Before that, we need to build JSON and pass it.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required