只需要加载依赖项

时间:2016-04-18 13:24:46

标签: javascript angularjs html5 google-maps-api-3

仅在需要时才加载angularjs依赖的最佳方法?

有一些内置函数可以在需要时注入依赖项吗?

真正的问题是我应该在角度模块中声明GoogleMapsAPIs counts the load os static APIlibary 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)); } } ,只在我需要的控制器上加载。

0 个答案:

没有答案