angular2-inputs Questions

2

Solved

Is there an easy way to inject an input binding into the deps array of a provider factory? Below obviously does not work. const myServiceFactory = (object: any) => { //... }; @Component({ //...
Cogwheel asked 4/3, 2017 at 7:22

6

Solved

I don't really understand how object binding works, so if anyone could explain if I can use @Input() inside a base class, or better: decorators and inheritance. For example if each form should rec...
Hickory asked 25/2, 2016 at 15:3

4

Solved

I'm using @input to receive a property from parent component in order to activate a CSS class in one of child component's element. I'm able to receive the property from parent and also activate th...
Absorbed asked 4/1, 2017 at 13:22

1

I am using Angular2 with Typescript Suppose I have the following in my app component's template: ... <coffee-cup [coffee]="" ... My coffee-cup component: @Component({ selector: 'coffee-...

1

Solved

I'm trying to build a <markdown-component> using ES6 syntax. The @Input syntax sugar isn't supported in ES6 and I can't find a viable alternative. I'm defining the input in the parent with: ...
Adjunction asked 28/12, 2015 at 19:22
1

© 2022 - 2024 — McMap. All rights reserved.