How to slide up in the first fret?

I don't know how to slide up to first fret should I try to hammer on by playing it open or is there a different technique?

I don't know how to slide up to first fret should I try to hammer on by playing it open or is there a different technique?