Lightbox in Angularjs 2

Asked

Viewed 201 times

0

I’m still very inexperienced with Angularjs and so I stick to simple things.

I need to use the Lightbox on a project. "Googlando" around, I found the angular-bootstrap-lightbox, but then I came across the situation where all his documentation is for Angularjs 1.x and I’m using in my project the Angularjs 2, making use of Typescript.

Can someone help me in how I should use it in Angularjs 2?

1 answer

1

Angular 2 brought a totally different model for building Single Page applications. You can’t use the Lightbox directive for Angularjs 1 that you linked up there directly in Angular 2. Even the concept of directives has changed, anyway, 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 else to do it for you. By the way, making components in Angular 2 is even easier than making Directives in Angularjs, why not try? :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.