Giter VIP home page Giter VIP logo

fis3-angular-demo's Introduction

fis3-angular-demo

基于 https://github.com/hefangshi/fis-pure-angular-demo 移植到FIS3,使用了 https://github.com/fex-team/mod 进行模块化管理与依赖加载,同时通过ng-annotate实现依赖注入注解的自动添加

使用方法

# 安装fis3
npm install -g fis3

# 下载demo
git clone https://github.com/zhangtao07/fis3-angular-demo.git

# 安装相关插件
cd fis3-angular-demo
npm install 

# bower安装依赖
bower install

# 使用FIS编译DEMO
fis3 release 

# 预览效果,推荐安装php-cgi和java,这样支持调试php程序,也可以直接fis3 server start 启动服务器
fis3 server  start --type node

# 生产环境打包压缩MD5戳等
fis3 release prod

运行截图

列表页

Why

  1. 用gulp做的angular方案很少集成按需加载,一般是采用目录全量加载方式去加载资源,这个DEMO中,所有的controller, directives则是按需加载。
  2. 无需配置轻松支持异步加载controller等逻辑,见modules/pages/tables/tables.js
  3. 模板也不需要异步加载,或者用类似html2js的插件去处理,直接__inline就可以使用。
  4. 如果看看配置文件就会发现,在FIS的环境下开发angular应用基本不需要任何配置,也是给大家展现一些FIS的使用思路
  5. 这个方案的目录组织结构也是按照模块进行功能拆分,给出了一个在angular应用下,模块拆分的指引
  6. 无缝结合FIS的打包、压缩、MD5戳等功能
  7. 通过按需编译FIS3能轻松解决使用bower时很多冗余资源的问题

fis3-angular-demo's People

Contributors

atomicmm avatar hefangshi avatar liguanrui avatar zhangtao07 avatar

Watchers

 avatar  avatar

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.