angularjs - Angular template not showing in rails app -


so have been battling issue past couple of days , can't seem find solution it. first want start off saying new both rails , angular, bare me while try explain issue , please let me know if there edits can make more clear.

i'm trying add angular current rails app started researching here @ http://angular-rails.com/. going swimmingly until tried route angular call load template. whatever reason, nothing when load page. i'm not sure missing, , i'm sure it's simple.

i created simple controller test out angular , created route index controller method. in views/angular_test/index.html.erb file created link ng-app , ng-view so:

<div ng-app="testapp">     <div class="view-container">         <div ng-view></div>     </div> </div> 

then in app.coffee created app , configured controller , routeprovider:

testapp = angular.module('testapp',[   'templates',   'ngroute',   'controllers', ])  testapp.config(['$routeprovider',   ($routeprovider)->     $routeprovider       .when('/testangular',         templateurl:"testangular.html",         controller:"testctrl"         ) ])  controllers = angular.module('controllers',[]) controllers.controller("testctrl", [ '$scope',   ($scope) -> ]) 

this seems working, in no errors in rails server log. or in network logs in chrome. there simple i'm missing here? start troubleshooting this?

for reference here contents of gemfile

... gem 'bower-rails' gem 'angular-rails-templates' group :development, :test    gem 'rspec-rails', '2.13.1'    gem 'sqlite3'    gem 'minitest'    gem 'web-console', '~> 2.0' end ... 

and bowerfile

asset 'angular' asset 'angular-route' asset 'bootstrap-sass-official' 

i appreciate , apologize such long post.

edit 1 i'm trying demo out before start spending time designing page right should see <h1>this should showing in view</h1> wrapped in applications html page.

the url i'm trying view isn't root url, localhost:3000/testangular.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -