public void RegisterBundles(BundleCollection bundles) { bundles.AddMainAngularScriptBundle(SetupRouteLibrary.Js, AngularJsDirectoryLibrary.Bootstrap, AngularJsDirectoryLibrary.Routes, AngularJsDirectoryLibrary.DataServices); bundles.AddAngularTemplateBundle(SetupRouteLibrary.Js, AngularJsDirectoryLibrary.Routes); }
public void RegisterBundles(BundleCollection bundles) { // JS bundles.AddMainAngularScriptBundle(UsersRouteLibrary.Js, AngularJsDirectoryLibrary.Bootstrap, AngularJsDirectoryLibrary.Routes, AngularJsDirectoryLibrary.Filters, AngularJsDirectoryLibrary.DataServices, AngularJsDirectoryLibrary.UIComponents); bundles.AddAngularTemplateBundle(UsersRouteLibrary.Js, AngularJsDirectoryLibrary.Routes, AngularJsDirectoryLibrary.UIComponents); }
public void RegisterBundles(BundleCollection bundles) { // CSS bundles.Add(new StyleBundle(VisualEditorRouteLibrary.Css.VisualEditor) .Include(VisualEditorRouteLibrary.Css.Bundle("site-viewer.css")) ); // JS bundles.AddMainAngularScriptBundle(VisualEditorRouteLibrary.Js, AngularJsDirectoryLibrary.Bootstrap, AngularJsDirectoryLibrary.Routes, AngularJsDirectoryLibrary.UIComponents, AngularJsDirectoryLibrary.DataServices); bundles.AddAngularTemplateBundle(VisualEditorRouteLibrary.Js, AngularJsDirectoryLibrary.Routes, AngularJsDirectoryLibrary.UIComponents); bundles.Add(new ScriptBundle(VisualEditorRouteLibrary.Js.VisualEditor) .Include(VisualEditorRouteLibrary.Js.Bundle("ContentPage/Index.js")) .Include(VisualEditorRouteLibrary.Js.Bundle("ContentPage/GuiController.js")) .Include(VisualEditorRouteLibrary.Js.Bundle("ContentPage/EventAggregator.js")) ); }
/// <summary> /// Adds the main bundle of angular scripts for this module to the bundle collection /// </summary> /// <param name="jsRoutes">The ModuleJsRouteLibrary for this module</param> /// <param name="directories">A collection of directory names (no slashes) to scan for files and add to the bundle.</param> /// <returns>BundleCollection instance for chaining</returns> public static BundleCollection AddMainAngularScriptBundle(this BundleCollection bundles, ModuleJsRouteLibrary jsRoutes, params string[] directories) { return(bundles.AddMainAngularScriptBundle(jsRoutes, null, directories)); }