Angular 2

How to load file in your Angular 2 project?

How to load (.d.ts) file in your Angular 2 project?
If you are using Angular 2, that time you are using some dependencies like zone. If we adding to “zone” in the apps i.e.

import angular2-zone.js/dist-v2/zone;

Noted Point : - You don't change the extension of this file and Just you add the reference of your custom definition inside this file using the triple slash notation i.e.

/// <reference path="./your-custom-file-typing.d.ts">

I hope you are enjoying with this post! Please share with you friends. Thank you!!

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog -
My Books - Book 1 and Book 2 Powered by Blogger.