use static method

void use()

Register to use Scrollspy component.

Implementation

static void use() {
  if (_registered) return;
  _registered = true;

  //Don't depend on load event due to dart.js load by defer
  //$window().on('load', (QueryEvent e) {
    for (final elem in $('[data-spy="scroll"]')) {
      Scrollspy.wire(elem); // TODO: data option
      //$spy.scrollspy($spy.data())
    }
  //});
}