Ember.onLoad()

onLoad (name, callback) private

Defined in packages/ember-runtime/lib/system/lazy_load.js:14

Detects when a specific package of Ember (e.g. 'Ember.Application') has fully loaded and is available for extension.

The provided callback will be called with the name passed resolved from a string into the object:

1
2
3
Ember.onLoad('Ember.Application' function(hbars) {
  hbars.registerHelper(...);
});

Parameters:

name String
name of hook
callback Function
callback to be called
doc_EmberJs
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.