Code Monkey home page Code Monkey logo

ngsea's Introduction

ngSea v0.6.1 beta

Ui-route + angular 1.3.*

  • 同时支持 ui-route 以及 ng-route
  • 约定大于配置的原则 尽量减少代码量
  • 修复 ui-route没 resolve会导致 进入ngsea模型不加载的问题

目前还在通过测试用例中 有兴趣的可以先测试 访问 ui.html 进行测试

IE8 + Angularjs 1.2.* + Seajs +ng-route

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

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

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

IE6 + Angularjs 1.0.8 + Seajs

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

有任何问题请在这里留言:#1

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;
                })
            }
        ]);
    }

ngSea v0.6.1 beta

Ui-route + angular 1.3.*

  • 同时支持 ui-route 以及 ng-route
  • 约定大于配置的原则 尽量减少代码量
  • 修复 ui-route没 resolve会导致 进入ngsea模型不加载的问题

目前还在通过测试用例中 有兴趣的可以先测试 访问 ui.html 进行测试

IE8 + Angularjs 1.2.* + Seajs +ng-route

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

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

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

IE6 + Angularjs 1.0.8 + Seajs

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

有任何问题请在这里留言:#1

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;
                })
            }
        ]);
    }

ngsea's People

Contributors

ckken avatar waffle-iron avatar

Stargazers

 avatar Yanqi Zong avatar Joffey avatar Dean Wong avatar footearth avatar unliu avatar  avatar suzhongying avatar lsh avatar  avatar  avatar  avatar  avatar rehorn avatar why520crazy avatar  avatar  avatar zhongxiao avatar Ligboy avatar tommy avatar __FresHmaN avatar ddesign avatar Barret李靖 avatar

Watchers

James Cloos avatar Kale avatar  avatar

ngsea's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.