Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanakumargn committed Nov 12, 2016
1 parent 15dddc7 commit 967db2e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 65 deletions.
62 changes: 22 additions & 40 deletions www/templates/menu.html
Original file line number Diff line number Diff line change
@@ -1,45 +1,27 @@
<ion-side-menus enable-menu-with-back-views="false">
<ion-side-menu-content>
<ion-nav-bar class="bar-stable">
<ion-nav-back-button>
</ion-nav-back-button>
<ion-side-menu-content>
<ion-nav-bar class="bar-stable">
<ion-nav-back-button>
</ion-nav-back-button>

<ion-nav-buttons side="left">
<button class="button button-icon button-clear ion-navicon" menu-toggle="left">
<ion-nav-buttons side="left">
<button class="button button-icon button-clear ion-navicon" menu-toggle="left">
</button>
</ion-nav-buttons>
</ion-nav-bar>
<ion-nav-view name="menuContent"></ion-nav-view>
</ion-side-menu-content>
</ion-nav-buttons>
</ion-nav-bar>
<ion-nav-view name="menuContent"></ion-nav-view>
</ion-side-menu-content>

<ion-side-menu side="left">
<ion-header-bar class="bar-stable">
<h1 class="title">ES6</h1>
</ion-header-bar>
<ion-content>
<ion-list>
<ion-item menu-close ng-repeat="item in menuItems" href="#/app/page/{{item.url}}">
{{item.header}}
</ion-item>
<!--<ion-item ng-repeat="item in menuItems" ng-click="pageView(item)">
{{item.header}}
</ion-item>-->
<!--<ion-item menu-close ng-click="login()">
Login 1{{valtest}}2
</ion-item>
<ion-item menu-close href="#/app/page/t" ng-click="pageView('jsHome')">
Page
</ion-item>
<ion-item menu-close href="#/app/search">
Search
</ion-item>
<ion-item menu-close href="#/app/browse">
Browse
</ion-item>
<ion-item menu-close href="#/app/playlists">
Playlists
</ion-item>-->
</ion-list>
</ion-content>
</ion-side-menu>
<ion-side-menu side="left">
<ion-header-bar class="bar-stable">
<h1 class="title">ES6</h1>
</ion-header-bar>
<ion-content>
<ion-list>
<ion-item menu-close ng-repeat="item in menuItems" href="#/app/page/{{item.url}}">
{{item.header}}
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
29 changes: 4 additions & 25 deletions www/templates/page.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
<ion-view>
<ion-nav-title>{{header}}</ion-nav-title>
<ion-content padding="true">
<!--<section >
<p>For example, looking up <code>nodejs.org</code>.</p> <pre><code class="lang-js">const dns = require(&#39;dns&#39;); dns.lookup(&#39;nodejs.org&#39;, (err, addresses, family) =&gt; { console.log(&#39;addresses:&#39;, addresses); }); </code></pre>
<section hljs>const dns = require('dns');
dns.lookup('nodejs.org', (err, addresses, family) => {
console.log('addresses:', addresses);
});</section>
</section>-->
<!--<section ng-bind-html="pageContent"></section>-->
<!--<section>
<h1>test</h1>
<section hljs>// Change heading:
document.getElementById("myH").innerHTML = "My First Page";
// Change paragraph:
document.getElementById("myP").innerHTML = "My first paragraph.";</section>
</section>-->

<div ng-repeat="template in templates" ng-include="template.url"></div>
<!--<div ng-include=pageId></div>-->
<!--<div ng-include src={{pageId}}></div>-->
<!--<div ng-include src="'assets/pages/js_home.tpl.html'"></div>-->
</ion-content>

<ion-nav-title>{{header}}</ion-nav-title>
<ion-content padding="true">
<div ng-repeat="template in templates" ng-include="template.url"></div>
</ion-content>
</ion-view>

0 comments on commit 967db2e

Please sign in to comment.