本文整理汇总了TypeScript中angularjs-for-webpack.module函数的典型用法代码示例。如果您正苦于以下问题:TypeScript module函数的具体用法?TypeScript module怎么用?TypeScript module使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了module函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: downgradeComponent
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import angular from 'angularjs-for-webpack';
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {downgradeComponent} from '@angular/upgrade/static';
import {tsCountEvents} from './count-events.directive';
import {tsTimelinesList} from './timelines.directive';
import {tsSavedViewList, tsSearchTemplateList} from './views.directive';
import {NavigationComponent} from './navigation.component';
export const tsSketchModule = angular.module('timesketch.sketch', [])
.directive('tsCountEvents', tsCountEvents)
.directive('tsTimelinesList', tsTimelinesList)
.directive('tsSavedViewList', tsSavedViewList)
.directive('tsSearchTemplateList', tsSearchTemplateList)
.directive('tsSketchNavigation', downgradeComponent({
component: NavigationComponent, propagateDigest: false,
}));
@NgModule({
imports: [CommonModule],
declarations: [NavigationComponent],
entryComponents: [NavigationComponent],
})
export class SketchModule {}
开发者ID:Onager,项目名称:timesketch,代码行数:30,代码来源:sketch.module.ts
示例2:
/*
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import angular from 'angularjs-for-webpack';
import {
tsStoryList, tsCreateStory, tsStory, tsStoryDropdown, tsStoryEventList,
} from './story.directive';
export const tsStoryModule = angular.module('timesketch.story', [])
.directive('tsStoryList', tsStoryList)
.directive('tsCreateStory', tsCreateStory)
.directive('tsStory', tsStory)
.directive('tsStoryDropdown', tsStoryDropdown)
.directive('tsStoryEventList', tsStoryEventList);
开发者ID:Onager,项目名称:timesketch,代码行数:26,代码来源:story.module.ts
示例3:
/*
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import angular from 'angularjs-for-webpack';
import {NgModule} from '@angular/core';
import {HttpClientModule} from '@angular/common/http';
import {timesketchApiImplementation} from './api.service';
export const tsApiModule = angular.module('timesketch.api', [])
.service('timesketchApi', timesketchApiImplementation);
@NgModule({
imports: [HttpClientModule],
})
export class ApiModule {}
开发者ID:Onager,项目名称:timesketch,代码行数:28,代码来源:api.module.ts
示例4: downgradeComponent
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {ReactiveFormsModule} from '@angular/forms';
import {downgradeComponent} from '@angular/upgrade/static';
import {CytoscapeComponent} from './cytoscape.component';
import {CypherQueryComponent} from './cypher-query.component';
import {CypherFormComponent} from './cypher-form.component';
import {GraphViewComponent} from './graph-view.component';
import {SidebarComponent} from './sidebar.component';
import {EventListComponent} from './event-list.component';
import {EventComponent} from './event.component';
import {MainComponent} from './main.component';
import {ApiModule} from '../api/api.module';
export const tsGraphModule = angular.module('timesketch.graphs', [])
.directive('tsGraphsMain', downgradeComponent({
component: MainComponent, propagateDigest: false,
}));
@NgModule({
imports: [CommonModule, FormsModule, ApiModule, ReactiveFormsModule],
declarations: [
CytoscapeComponent,
CypherQueryComponent,
CypherFormComponent,
GraphViewComponent,
SidebarComponent,
EventListComponent,
EventComponent,
MainComponent,
开发者ID:Onager,项目名称:timesketch,代码行数:31,代码来源:graph.module.ts
示例5:
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import angular from 'angularjs-for-webpack';
import {tsEvent, tsEventAdd, tsEventList} from './event.directive';
import {tsFilter, tsTimelinePickerItem} from './filter.directive';
import {tsHeatmap} from './heatmap.directive';
import {tsHistogram} from './histogram.directive';
import {tsJsonEditor} from './json-editor.directive';
import {
tsSearch, tsSearchContextCard, tsSearchSavedViewPicker, tsSearchTemplatePicker,
} from './search.directive';
export const tsExploreModule = angular.module('timesketch.explore', [])
.directive('tsEvent', tsEvent)
.directive('tsEventAdd', tsEventAdd)
.directive('tsEventList', tsEventList)
.directive('tsFilter', tsFilter)
.directive('tsTimelinePickerItem', tsTimelinePickerItem)
.directive('tsHeatmap', tsHeatmap)
.directive('tsHistogram', tsHistogram)
.directive('tsJsonEditor', tsJsonEditor)
.directive('tsSearch', tsSearch)
.directive('tsSearchContextCard', tsSearchContextCard)
.directive('tsSearchSavedViewPicker', tsSearchSavedViewPicker)
.directive('tsSearchTemplatePicker', tsSearchTemplatePicker);
开发者ID:Onager,项目名称:timesketch,代码行数:29,代码来源:explore.module.ts
示例6: RegExp
import './css/ts.scss';
import {tsApiModule} from './api/api.module';
import {AttachCsrfTokenInterceptor} from './api/attach-csrf-token.interceptor';
import {tsCoreModule} from './core/core.module';
import {tsExploreModule} from './explore/explore.module';
import {tsSketchModule, SketchModule} from './sketch/sketch.module';
import {tsStoryModule} from './story/story.module';
import {tsGraphModule, GraphModule} from './graph/graph.module';
import {SketchService} from './api/sketch.service';
import {GraphService} from './api/graph.service';
export const tsAppModule = angular.module('timesketch', [
tsApiModule.name,
tsCoreModule.name,
tsExploreModule.name,
tsSketchModule.name,
tsStoryModule.name,
tsGraphModule.name,
])
.config(function ($httpProvider) {
// List of URLs to exclude from the butterbar.
const excludeFromButterbar = (url) => {
const excludeURLs = [
'/api/v1/tasks/',
'/api/v1/sketches/[0-9]+/stories/[0-9]+/',
'/api/v1/sketches/[0-9]+/timelines/',
];
const re = new RegExp(excludeURLs.join('|'), 'i');
return url.match(re) != null;
};
开发者ID:Onager,项目名称:timesketch,代码行数:32,代码来源:app.module.ts
示例7:
/*
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import angular from 'angularjs-for-webpack';
import {tsButterbar} from './butterbar.directive';
import {tsEditSketch} from './edit-sketch.directive';
import {tsCoreUpload, tsCoreFileModel, tsCoreUploadQueue} from './upload.directive';
export const tsCoreModule = angular.module('timesketch.core', [])
.directive('tsButterbar', tsButterbar)
.directive('tsEditSketch', tsEditSketch)
.directive('tsCoreUpload', tsCoreUpload)
.directive('tsCoreFileModel', tsCoreFileModel)
.directive('tsCoreUploadQueue', tsCoreUploadQueue);
开发者ID:Onager,项目名称:timesketch,代码行数:26,代码来源:core.module.ts
注:本文中的angularjs-for-webpack.module函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论