mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Removed twitter example app
You can't use the old system so I'm scrapping this for now.
This commit is contained in:
@ -1,26 +0,0 @@
|
||||
angular.module('ionic.twitter', ['ngTouch', 'ngResource'])
|
||||
|
||||
.factory('TweetSearcher', function($resource) {
|
||||
var searchResource = $resource('http://search.twitter.com/:action', {
|
||||
action: 'search.json',
|
||||
callback:'JSON_CALLBACK'
|
||||
}, {
|
||||
get: {
|
||||
method:'JSONP'
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
search: function(query) {
|
||||
return searchResource.query({
|
||||
q: 'Cats'
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
.controller('SearchCtrl', function($scope, TweetSearcher) {
|
||||
$scope.search = function(query) {
|
||||
TweetSearcher.search(query);
|
||||
};
|
||||
});
|
||||
@ -1,34 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link href="/vendor/font-awesome/css/font-awesome.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../../dist/ionic.css">
|
||||
<style>
|
||||
</style>
|
||||
<script src="/vendor/angular/1.2.0rc2/angular-1.2.0rc2.min.js"></script>
|
||||
<script src="/vendor/angular/1.2.0rc2/angular-touch.js"></script>
|
||||
<script src="/vendor/angular/1.2.0rc2/angular-resource.js"></script>
|
||||
<script src="app.js"></script>
|
||||
</head>
|
||||
<body ng-app="ionic.twitter">
|
||||
<section ng-controller="SearchCtrl">
|
||||
|
||||
<header class="bar bar-header bar-primary">
|
||||
<h1 class="title">Twitter Search</h1>
|
||||
<div class="buttons">
|
||||
<a href="#" class="button button-icon"><i class="icon-search"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
<div class="bar bar-header-secondary">
|
||||
<form>
|
||||
<input type="search" ng-keyup="search(value)">
|
||||
</form>
|
||||
</div>
|
||||
<main class="content has-header has-secondary-header">
|
||||
|
||||
</main>
|
||||
</section>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user