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!!

About blogger..


Hey! I am Anil Singh. I am Active Blogger, Writer and Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...

Post a Comment Powered by Blogger.