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

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...
http://www.code-sample.com
http://www.code-sample.xyz

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.