chimingphang
V2EX  ›  Angular

Angular Error: [$injector:modulerr]

  •  
  •   chimingphang · Apr 11, 2016 · 3106 views
    This topic created in 3732 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   ·   5897 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 03:01 · PVG 11:01 · LAX 20:01 · JFK 23:01
    ♥ Do have faith in what you're doing.