In my code, there exists a global JavaScript object known as instance_
This object includes a property named current_
Later on, another property called dataset_ is assigned to current_
Therefore, we can access this dataset_ property by using instance_.current_.dataset_
I often utilize the dataset_ property within a div element to display the current dataset. However, when the controller is initialized by Angular, current_ is null. This presents an issue as I am unable to use the dataset_ property of current_ by setting
$scope = instance_.current_.dataset_
since current_ is currently null
What steps should I take in order to resolve this dilemma?
As an alternative solution attempt, are there ways to delay the initialization of this particular controller until current_view_ no longer remains null?