Skip to content

Instantly share code, notes, and snippets.

View atmimran's full-sized avatar
🏠
Working from home

Muhammad Imran atmimran

🏠
Working from home
View GitHub Profile
@atmimran
atmimran / gist:6435ceaa5fa3eb67af45
Created January 25, 2015 14:44
view scope and controller
<!DOCTYPE html>
<html ng-app="">
<head>
<title></title>
</head>
<body>
<div class="container" data-ng-controller="simpleController">
<h3>Adding A Simple Controller</h3>
<ul>
<li data-ng-repeat="cust in customers">
@atmimran
atmimran / gist:434e29a7b7bdbea68f69
Created January 23, 2015 15:29
Filters in angularjs
<!DOCTYPE html>
<html ng-app="">
<head>
<title></title>
</head>
<body>
Name:<input type="text" ng-model="nameModel"> {{nameModel}}
<div ng-init="names=[{name:'Imran', city:'khi'}, {name:'ali', city:'Karachi'}]">
@atmimran
atmimran / gist:e6471db5a04b5847a817
Last active August 29, 2015 14:14
What Is Data Binding
<!DOCTYPE html>
<html ng-app="">
<head>
<title></title>
</head>
<body>
<input type="text" name="name" ng-model="name" value="" />
<p ng-bind="name"></p> And we also use expression like this {{name}}
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
</body>
@atmimran
atmimran / gist:2586e7605c361b26193b
Created January 23, 2015 13:30
Angularjs app Expression
<!DOCTYPE html>
<html ng-app="">
<head>
<title></title>
</head>
<body>
{{2+2}}
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
</body>
</html>
@atmimran
atmimran / gist:69b70971550f82dbcbb0
Created September 9, 2014 06:50
Camera work in PhoneGap and make build in "build.phonegap"
<!-- First Add plugin in config.xml then go on build.phonegap.com <gap:plugin name="org.apache.cordova.camera" version="0.2.3" />-->
<!DOCTYPE html>
<html>
<head>
<title>Capture Photo</title>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8">
var pictureSource; // picture source
@atmimran
atmimran / gist:02e22519def2856d7d50
Created September 8, 2014 13:33
Config.xml plugin for build.phonegap
<gap:plugin name="org.apache.cordova.device" version="0.2.3" />
<gap:plugin name="org.apache.cordova.camera" version="0.2.3" />
<gap:plugin name="org.apache.cordova.globalization" version="0.1.0" />
<gap:plugin name="org.apache.cordova.inappbrowser" version="0.1.0" />
<gap:plugin name="com.phonegap.plugins.pushplugin" version="2.1.1" />