Comparing version 0.0.2 to 0.0.3
@@ -21,3 +21,3 @@ (function (window, factory) { | ||
target.constructor.bindings[alias || property] = "<"; | ||
target.constructor.bindings[property] = "<" + (alias ? alias : ""); | ||
}; | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "ng1-shift", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Angular 1.5+ decorators for writing Angular2 like.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,5 @@ # ng1-shift | ||
## How to install? | ||
`npm i -S ng1-shift` | ||
## Component | ||
@@ -20,3 +23,5 @@ Decorator for class, which links class to component contoller. | ||
@Component({ | ||
template: require("./playground.html"), | ||
template: ` | ||
<h1>Place your template here</h1> | ||
`, | ||
}) | ||
@@ -38,3 +43,5 @@ export class PlaygroundComponent implements ng.IController { | ||
static controller = PlaygroundComponent; | ||
static template = require("./playground.html"); | ||
static template = ` | ||
<h1>Place your template here</h1> | ||
`; | ||
@@ -41,0 +48,0 @@ $onInit() { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7358
97