So this will always initialize the scope to the default id for the graph, the user could potentially set a different id on the graph using the config method on the graph. You should consider moving this. This logic probably needs to move to graph.js