Created
March 3, 2016 19:27
-
-
Save vespertilian/2130cd68cdbfa60c402b to your computer and use it in GitHub Desktop.
Angular 1.5 Component Typescript Definition for use with webpack
This file contains hidden or 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
var ngModule = angular.module('app',[]); | |
// be sure to call new | |
ngModule | |
.component('login', new login()) |
This file contains hidden or 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
var templateUrl = require('./login.html'); | |
export class login implements ng.IComponentOptions { | |
public templateUrl: string; | |
public bindings: any; | |
public controller: any; | |
constructor() { | |
this.bindings = {}; | |
this.controller = LoginController; | |
this.templateUrl = templateUrl; | |
} | |
} | |
class LoginController { | |
constructor(){ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment