Giter Club home page Giter Club logo

jqmangular's Introduction

jqmAngular

A sample/POC project, integrated jquery mobile with angular js. Integration between jquery moble and angular js. I've tried the angular js and jquery mobile adapter but that is not working in the way that i've expected. As this is in POC stage we still need to work around on this project

Directory structure:

:
:--public-
:---------|-css
:---------|-js-
:-------------|-app.js
:-------------|-main.js
:-------------|-app
:-----------------|-Controllers
:-----------------|-Directives
:-----------------|-Router
:-----------------|-Services
:-----------------|-Views
:-------------|-lib
:-----------------|-angular
:-----------------|-jquery
:-----------------|-utils
:-----------------|-require.js
:-----------------|-text.js
:--index.html
:

Used-libraries:

anglar.js
jqueryMobile
underscore.js
require.js

Getting-Started:

App.js contains the application initialization logic. We are not using angular js routing mechanism and writted a custom routing module. the following code explains, how Main.js initializes the router with a default route of the application

var RouteResolver = $injector.get("RouteResolver"); RouteResolver.initialize();

This code initializes the router and loads the application default route configured in router. As a first step in AppRouter, configure the routes with controllers.

this.routes = { home: "HomeCtrl", contact: "ContactCtrl" }

When we try to navigate to "home route" then AppRouter loads the "HomeCtrl". Check the following method to navigate to a module/route.

this.navigate= function(route, scope){ ................................................................................ }

Page navigations will be handled in the Approuter's navigate method. So, call the navigate method to navigate to a specific module.

HTML Anchor tag navigations are also handled in the same but that is still in progress.

As the "AppRouter" initializes a controller by calling the initialize method in a controller, Every controller must implement an initialize method.

jqmangular's People

Contributors

karthik655 avatar

Watchers

James Cloos 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.