It's possible the element you're selecting isn't available yet, so the selector is failing to find the element.
You should probably call the .draggable() in the ngAfterViewInit lifecycle hook (which is like ngOnInit) to make sure the DOM element is present before attaching.