V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
chimingphang
V2EX  ›  Angular

Angular Error: [$injector:modulerr]

  •  
  •   chimingphang · Apr 11, 2016 · 2978 views
    This topic created in 3668 days ago, the information mentioned may be changed or developed.

    ##news.js

       var ngApp =  angular.module('NewsList', []);
        ngApp.controller('newsController', function ($scope, $http) {
            $http.get('phones/phones.json', {pageNo:pageno,pageSize:pagesize}).success(function(response) {
                $scope.newsitems = response.data.result;
            });
        });
    

    ##news.html

       
    • newsitem.id}}" target="_blank">{{newsitem.title}} {{newsitem.publishTime}}
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1009 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:15 · PVG 06:15 · LAX 15:15 · JFK 18:15
    ♥ Do have faith in what you're doing.