I'm having trouble with the following code in IE 11 (Windows 8.1)

var oAddressEditorController = angular.element(oModal[0]).controller();

// Initialise the controller with the passed options
oAddressEditorController.init(poParams);

// Show the address editor modal
oModal.modal('show');

Error says 'Unable to get property 'init' of undefined or null reference. Works fine in other browsers and versions of IE.

Help will be much appreciated

My guess is the modal attempts to show before the oAddressEditorController is initialized. Is there a way around this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.