仅在需要时才加载angularjs依赖的最佳方法?
有一些内置函数可以在需要时注入依赖项吗?
真正的问题是我应该在角度模块中声明GoogleMapsAPIs counts the load os static API和libary to show the maps。
如何从模块定义中删除using std::unique_ptr<Figure> figure_p;
std::vector<figure_p> compose;
...
void StartProgram()
{
int q = 0;
cout << "\nEnter figures quantity\n";
cin >> q;
for (int i = 0; i < q; i++)
{
figure_p Temp(new Figure);
Temp->CreateFigure(255, 3);
compose.insert(compose.end(), std::move<figure_p>(Temp));
}
}
,只在我需要的控制器上加载。