Enviar pesquisa
Carregar
kRouter
•
0 gostou
•
593 visualizações
Kelp Chen
Seguir
AngularJS router without location.hash. https://github.com/kelp404/kRouter
Leia menos
Leia mais
Tecnologia
Educação
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 27
Baixar agora
Baixar para ler offline
Recomendados
Php resque
Php resque
Chaitanya Kuber
Background Jobs with Resque
Background Jobs with Resque
homanj
Open Source Saturday - How can I contribute to Ruby on Rails?
Open Source Saturday - How can I contribute to Ruby on Rails?
Pravin Mishra
Background processing with Resque
Background processing with Resque
Nicolas Blanco
Tdc 2013 - Ecossistema Ruby
Tdc 2013 - Ecossistema Ruby
Fabio Akita
Building an API with Django and Django REST Framework
Building an API with Django and Django REST Framework
Christopher Foresman
OWASP Nagpur Meet #3 Android RE
OWASP Nagpur Meet #3 Android RE
OWASP Nagpur
Real-time search in Drupal. Meet Elasticsearch
Real-time search in Drupal. Meet Elasticsearch
Alexei Gorobets
Recomendados
Php resque
Php resque
Chaitanya Kuber
Background Jobs with Resque
Background Jobs with Resque
homanj
Open Source Saturday - How can I contribute to Ruby on Rails?
Open Source Saturday - How can I contribute to Ruby on Rails?
Pravin Mishra
Background processing with Resque
Background processing with Resque
Nicolas Blanco
Tdc 2013 - Ecossistema Ruby
Tdc 2013 - Ecossistema Ruby
Fabio Akita
Building an API with Django and Django REST Framework
Building an API with Django and Django REST Framework
Christopher Foresman
OWASP Nagpur Meet #3 Android RE
OWASP Nagpur Meet #3 Android RE
OWASP Nagpur
Real-time search in Drupal. Meet Elasticsearch
Real-time search in Drupal. Meet Elasticsearch
Alexei Gorobets
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Innovecs
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Fwdays
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Maarten Balliauw
Real-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @Moldcamp
Alexei Gorobets
Drupal and Elasticsearch
Drupal and Elasticsearch
Nikolay Ignatov
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
Srijan Technologies
Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016
Alvaro Sanchez-Mariscal
Capistrano - automate all the things
Capistrano - automate all the things
John Cleary
Celery for internal API in SOA infrastructure
Celery for internal API in SOA infrastructure
Roman Imankulov
Getting Started with Capistrano
Getting Started with Capistrano
LaunchAny
What's New in v2 - AnsibleFest London 2015
What's New in v2 - AnsibleFest London 2015
jimi-c
Designing net-aws-glacier
Designing net-aws-glacier
Workhorse Computing
Google App Engine With Java And Groovy
Google App Engine With Java And Groovy
Ken Kousen
Web Operations101
Web Operations101
Nell Shamrell-Harrington
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Shengyou Fan
Rust, Redis, and Protobuf - Oh My!
Rust, Redis, and Protobuf - Oh My!
Nell Shamrell-Harrington
Scaling up task processing with Celery
Scaling up task processing with Celery
Nicolas Grasset
Celery with python
Celery with python
Alexandre González Rodríguez
Gohan
Gohan
Nachi Ueno
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
Amazon Web Services
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Caldera Learn - LoopConf WP API + Angular FTW Workshop
CalderaLearn
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Paulo Ragonha
Mais conteúdo relacionado
Mais procurados
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Innovecs
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Fwdays
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Maarten Balliauw
Real-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @Moldcamp
Alexei Gorobets
Drupal and Elasticsearch
Drupal and Elasticsearch
Nikolay Ignatov
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
Srijan Technologies
Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016
Alvaro Sanchez-Mariscal
Capistrano - automate all the things
Capistrano - automate all the things
John Cleary
Celery for internal API in SOA infrastructure
Celery for internal API in SOA infrastructure
Roman Imankulov
Getting Started with Capistrano
Getting Started with Capistrano
LaunchAny
What's New in v2 - AnsibleFest London 2015
What's New in v2 - AnsibleFest London 2015
jimi-c
Designing net-aws-glacier
Designing net-aws-glacier
Workhorse Computing
Google App Engine With Java And Groovy
Google App Engine With Java And Groovy
Ken Kousen
Web Operations101
Web Operations101
Nell Shamrell-Harrington
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Shengyou Fan
Rust, Redis, and Protobuf - Oh My!
Rust, Redis, and Protobuf - Oh My!
Nell Shamrell-Harrington
Scaling up task processing with Celery
Scaling up task processing with Celery
Nicolas Grasset
Celery with python
Celery with python
Alexandre González Rodríguez
Gohan
Gohan
Nachi Ueno
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
Amazon Web Services
Mais procurados
(20)
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Real-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @Moldcamp
Drupal and Elasticsearch
Drupal and Elasticsearch
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016
Capistrano - automate all the things
Capistrano - automate all the things
Celery for internal API in SOA infrastructure
Celery for internal API in SOA infrastructure
Getting Started with Capistrano
Getting Started with Capistrano
What's New in v2 - AnsibleFest London 2015
What's New in v2 - AnsibleFest London 2015
Designing net-aws-glacier
Designing net-aws-glacier
Google App Engine With Java And Groovy
Google App Engine With Java And Groovy
Web Operations101
Web Operations101
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Rust, Redis, and Protobuf - Oh My!
Rust, Redis, and Protobuf - Oh My!
Scaling up task processing with Celery
Scaling up task processing with Celery
Celery with python
Celery with python
Gohan
Gohan
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
Semelhante a kRouter
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Caldera Learn - LoopConf WP API + Angular FTW Workshop
CalderaLearn
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Paulo Ragonha
Ruby/Rails
Ruby/Rails
rstankov
CakePHP
CakePHP
Walther Lalk
SproutCore and the Future of Web Apps
SproutCore and the Future of Web Apps
Mike Subelsky
Managing GraphQL servers with AWS Fargate & Prisma Cloud
Managing GraphQL servers with AWS Fargate & Prisma Cloud
Nikolas Burk
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Tatsuhiko Miyagawa
Full Stack Scala
Full Stack Scala
Ramnivas Laddad
[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development
Adam Tomat
Fast Web Applications Development with Ruby on Rails on Oracle
Fast Web Applications Development with Ruby on Rails on Oracle
Raimonds Simanovskis
Full stack development with node and NoSQL - All Things Open - October 2017
Full stack development with node and NoSQL - All Things Open - October 2017
Matthew Groves
Full Stack Development with Node.js and NoSQL
Full Stack Development with Node.js and NoSQL
All Things Open
Going crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHP
Mariano Iglesias
REST API に疲れたあなたへ贈る GraphQL 入門
REST API に疲れたあなたへ贈る GraphQL 入門
Keisuke Tsukagoshi
Advanced Technology for Web Application Design
Advanced Technology for Web Application Design
Bryce Kerley
Everything-as-code – Polyglotte Entwicklung in der Praxis
Everything-as-code – Polyglotte Entwicklung in der Praxis
QAware GmbH
Polyglot Adventures for the Modern Java Developer #javaone2017
Polyglot Adventures for the Modern Java Developer #javaone2017
Mario-Leander Reimer
Polyglot Adventures for the Modern Java Developer
Polyglot Adventures for the Modern Java Developer
QAware GmbH
huhu
huhu
Dung Trương
Java Libraries You Can’t Afford to Miss
Java Libraries You Can’t Afford to Miss
Andres Almiray
Semelhante a kRouter
(20)
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Ruby/Rails
Ruby/Rails
CakePHP
CakePHP
SproutCore and the Future of Web Apps
SproutCore and the Future of Web Apps
Managing GraphQL servers with AWS Fargate & Prisma Cloud
Managing GraphQL servers with AWS Fargate & Prisma Cloud
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Full Stack Scala
Full Stack Scala
[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development
Fast Web Applications Development with Ruby on Rails on Oracle
Fast Web Applications Development with Ruby on Rails on Oracle
Full stack development with node and NoSQL - All Things Open - October 2017
Full stack development with node and NoSQL - All Things Open - October 2017
Full Stack Development with Node.js and NoSQL
Full Stack Development with Node.js and NoSQL
Going crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHP
REST API に疲れたあなたへ贈る GraphQL 入門
REST API に疲れたあなたへ贈る GraphQL 入門
Advanced Technology for Web Application Design
Advanced Technology for Web Application Design
Everything-as-code – Polyglotte Entwicklung in der Praxis
Everything-as-code – Polyglotte Entwicklung in der Praxis
Polyglot Adventures for the Modern Java Developer #javaone2017
Polyglot Adventures for the Modern Java Developer #javaone2017
Polyglot Adventures for the Modern Java Developer
Polyglot Adventures for the Modern Java Developer
huhu
huhu
Java Libraries You Can’t Afford to Miss
Java Libraries You Can’t Afford to Miss
Último
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Memoori
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Commit University
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
hariprasad279825
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Rizwan Syed
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
NavinnSomaal
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
Fwdays
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Mark Simos
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Wonjun Hwang
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Safe Software
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
The Digital Insurer
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
ScyllaDB
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
Fwdays
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Fwdays
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
charlottematthew16
Último
(20)
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
kRouter
1.
kRouter https:/ /github.com/kelp404/kRouter
2.
Kelp github/kelp404! iOS App Developer! Front-end
Developer! Objective-C, CoffeeScript, Python
3.
kRouter Reason! CoffeeScript! kRouter! Unit Test! Conclusion
4.
kRouter SEO! location.hash `#`
5.
CoffeeScript
6.
CoffeeScript
7.
JavaScript https:/ /github.com/madrobby/semicolon.js
8.
CoffeeScript
9.
JavaScript } } } }
10.
CoffeeScript
11.
JavaScript return { id: 1002
, name: ‘Kelp’ , email: ‘kelp@phate.org’ };
12.
CoffeeScript id: 1002 name: ‘Kelp’ email:
‘kelp@phate.org’
13.
JavaScript function (members, name)
{ var result = []; for (var index = 0; index < members.length; index++) { if (members[index].name == name) { result.push(members[index]); } } return result; }
14.
CoffeeScript (members, name) -> x
for x in members when x.name is name
15.
JavaScript $(function () { $(document).on(‘click’,
‘#link’, function () { var s = $(‘#text’).text(); $(this).html(‘Hello ‘ + s + ‘!!’); }); });
16.
CoffeeScript $ -> $(document).on ‘click’,
‘#link’, -> s = $(‘#text’).text() $(@).html “Hello #{s}!!”
17.
JavaScript angular.module(‘app’, []) .controller(‘HomeController’, function
($scope) { $scope.text = ‘hello’; });
18.
CoffeeScript a = angular.module
‘app’, [] a.controller ‘HomeController’, ($scope) -> $scope.text = ‘hello’
19.
CoffeeScript npm install -g
coffee-script
20.
kRouter Routes! history.pushState()! window.onpopstate
21.
kRouter common.coffee! directive.coffee! module.coffee! provider.coffee
22.
common.coffee getUri: (href=location.href) ->! matchRoute:
(url, routes) ->! parseQueryString: (queryString) ->
23.
directive.coffee kr-view! kr-go
24.
module.coffee angular.module 'kRouter', [ 'kRouter.provider',
'kRouter.directive' ]
25.
provider.coffee $kRouterProvider.register = (name,
args={}) ->! routers: []! state: current: {} params: {}! go: (href, push=true) ->
26.
Unit Test Travis CI! karma! jasmine
27.
Conclusion npm install -g
coffee-script! git clone https:/ /github.com/kelp404/kRouter.git cd kRouter git submodule update --init
Baixar agora