chimingphang
V2EX  ›  Angular

Angular Error: [$injector:modulerr]

  •  
  •   chimingphang · Apr 11, 2016 · 3133 views
    This topic created in 3746 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   ·   4876 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
    ♥ Do have faith in what you're doing.