• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript angularjs-for-webpack.module函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript angulartics2.Angulartics2类代码示例发布时间:2022-05-25
下一篇:
TypeScript angularjs-for-webpack.isDefined函数代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap