Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add routes and initial structure for JS app #44

Merged
merged 2 commits into from

2 participants

@bakura10
Owner

No description provided.

public/app/application/application.js
((8 lines not shown))
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * and is licensed under the MIT license.
+ */
+
+'use strict';
+
+var ForumApplication = angular.module('ForumApplication', ['ngResource']);
+
+ForumApplication.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
+ $locationProvider.html5Mode(true).hashPrefix('!');
@Orkin Collaborator
Orkin added a note

Pour le html5Mode je pense qu'il faudrait passer par un fichier de paramètre pour pouvoir l'activer/désactiver facilement

@bakura10 Owner
bakura10 added a note

En fait il n'y a pas vraiment de raison de le désactiver... sachant que si le navigateur supporte pas HTML5, Angular passe automatiqeuemnt avec les URL avec le hash. M'enfin effecitvmenet on peut le rendre cofnigurable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@bakura10 bakura10 merged commit 5da4d9c into zf-fr:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 3, 2012
  1. @bakura10
Commits on Dec 4, 2012
  1. @bakura10

    Views

    bakura10 authored
Something went wrong with that request. Please try again.