Created
February 23, 2017 12:59
-
-
Save anteriovieira/b556948421ff561162bd732ae358b14b to your computer and use it in GitHub Desktop.
Ng Component Loaer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as angular from 'angular'; | |
declare module 'angular' { | |
export interface IModule { | |
/** | |
* Use this method to register components. | |
* | |
* @param components An Object of component type. | |
* | |
* @example | |
* | |
* import tab from './components/tab.ng' | |
* angular.module('app').components({ tab }) | |
*/ | |
components(components: Object ): IModule; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment