ngSea

码农软件 · 软件分类 · AngularJS 扩展 · 2019-03-17 14:57:55

软件介绍

Angularjs 1.2.7 + Seajs 按需加载插件

angular 1.2.7 支持IE8+ 如需支持IE7 需要关闭 $sceProvider

 angular.module('ie7support', []).config(function($sceProvider) {
        $sceProvider.enabled(false);
    });
    然后注入 ie7support

DEMO http://wvovo.com/ngSea/index.1.2.7.html

Angularjs 1.0.8 + Seajs 按需加载插件

目前测试兼容IE6+

DEMO :http://wvovo.com/ngSea/#/

有任何问题请在这里留言:https://github.com/ckken/ngSea/issues/1

  • ngSea by KenZR email ckken@qq.com

    • Create time 2013/12/5

    • support in IE6 about with the Angular 1.0.8 (because the 1.2.3 not support in IE 7)

    • use it inject ngSea And in run use app = $ngSea(app); that's all

    • Contact us: QQ 117692258

SeaJs配置

    seajs.use(['app'], function(app){
        angular.bootstrap(document, ['app']);
    });

加载插件后 注入ngSea

var app = angular.module('app', ['ngSea']);

路由配置方式

  when('/t1', {
      controller: 'testACtrl',
      templateUrl: './app/mod/m1/t1.html',
      'controllerUrl': 'm1/t1'
  })

Run 期间引入$ngSea 赋值

    app.run(["$rootScope", "$ngSea", function ($rootScope, $ngSea) {
        app = $ngSea(app);
    }]);

请保留app里面的 register变量 使用方式为

    module.exports = function(app){
        app.register.controller('testACtrl', ['$scope', '$routeParams', '$location', '$http',
            function($scope, $routeParams, $location, $http){
                $http.get('data/testA.json').success(function(res){
                    $scope.data=res;
                })
            }
        ]);
    }

如果选择兼容requireJs 或者不考虑IE7一下的话

可以考虑天猪的版本 :https://github.com/ckken/angular-lazyload

我的版本只支持SEAjs

本文地址:https://www.codercto.com/soft/d/1551.html

O2O

O2O

张波 / 机械工业出版社华章公司 / 2013-2-5 / 49.00元

2012年是O2O元年,无论是成熟的传统企业、如火如荼的电子商务企业,还是以电信、银行、娱乐等为代表的与民生相关的企业,都在探索和践行O2O模式,因为O2O中孕育着极富创新性的商业模式。本书是国内首部O2O方面的著作,不仅宏观上叙述了O2O的概念、在各行业的应用情况,以及未来的发展趋势,而且还系统阐述和解读了各行业如何借助O2O来顺利实现商业模式的转型和升级;不仅极富洞察力地分析了O2O在营销、支......一起来看看 《O2O》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

html转js在线工具
html转js在线工具

html转js在线工具