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

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - and
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
Post a Comment Powered by Blogger.
ASK Questions
SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book