Lightbox on AngularJs 2

0

I'm still very inexperienced with AngularJs and so I'm into simple things.

I need to use Lightbox in a project. "Googlando" out there, I found the angular-bootstrap-lightbox , but then me I came across the situation where all his documentation is for AngularJS 1.x and I am using AngularJS 2 in my project, making use of Typescript >.

Can anyone help me with how do I use it in AngularJS 2 ?

    
asked by anonymous 22.06.2016 / 16:17

1 answer

1

Angular 2 has brought a totally different model for building Single Page applications. You can not use the Lightbox directive for AngularJS 1 that you linked up directly in Angular 2. Even the concept of directives has changed, so everything has changed.

You only have two options, as I see it: either create your own Lightbox component with Angular 2 or wait for someone to do this component for you. Incidentally, making components in Angular 2 is even easier than doing Directives in AngularJS, why not try? :)

    
22.06.2016 / 19:23