Error with select2 in angular 5

0

Good morning, I am trying to give these functions to a screen that I created select 2 examples ng2-select2 (it's the first select, the most basic)

The problem is that apparently it is not supported for angle 5, only for angle 2

My error is as follows:

Can't bind to 'data' since it isn't a known property of 'select2'.

I'm doing a very basic example following this page select2 basic , as you can see are just a few lines and there are no code or import errors etc, etc.

I would like to see if you could help me see what the problem is or if they know of any other tool that gives me the same functionality. Thanks

    
asked by alex diego 01.02.2018 в 00:52
source

1 answer

0

You must use [data], since angular change the syntax

    
answered by 21.06.2018 в 17:49