facebook

No template type validation on @Input

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #545258 Reply

    Fedor Losev
    Participant

    if we have in a component @Input() target: number; and source: string; in another component, the following does not produce any warning:
    <component [target]="source">
    and obviously fails hard at runtime.

    This should produce same error as if the assignment is done in the code, namely Type 'string' is not assignable to type 'number'.

    #545355 Reply

    support-swapna
    Moderator

    Fedor,

    Thank you for reporting it. A bug is filed for the dev team to work on it.
    We will keep you posted when it is fixed.

    –Swapna
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: No template type validation on @Input

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in