Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Problema no início do curso!

Olá! Estou com um problema no começo do curso, quando geramos o projeto com o comando ionic start AluraCar blank, e depois executamos. O conteúdo que é aberto no navegador é um header escrito "Ionic Blank" e no corpo da página tem um texto escrito "The world is a oyster". O grande problema é que eu não consigo alterar esse conteúdo. Tudo que eu escrevo no index.html é sobreposto por esse text citado acima. Creio que seja algum código no index.html que está sobrepondo. Vou compartilhar o código.

index.html

    1 <!DOCTYPE html>                                                                                                                           
    2 <html lang="en" dir="ltr">
    3 <head>
    4   <script data-ionic="inject">
    5     (function(w){var i=w.Ionic=w.Ionic||{};i.version='3.5.0';i.angular='4.1.3';i.staticDir='build/';})(window);
    6   </script>
    7   <meta charset="UTF-8">
    8   <title>Ionic App</title>
    9   <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
   10   <meta name="format-detection" content="telephone=no">
   11   <meta name="msapplication-tap-highlight" content="no">
   12  
   13   <link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
   14   <link rel="manifest" href="manifest.json">
   15   <meta name="theme-color" content="#4e8ef7">
   16  
   17   <!-- cordova.js required for cordova apps -->
   18   <script src="cordova.js"></script>
   19  
   20   <!-- un-comment this code to enable service worker
   21   <script>
   22     if ('serviceWorker' in navigator) {
   23       navigator.serviceWorker.register('service-worker.js')
   24         .then(() => console.log('service worker installed'))
   25         .catch(err => console.error('Error', err));
   26     }
   27   </script>-->
   28  
   29   <link href="build/main.css" rel="stylesheet">
   30  
   31 </head>
   32 <body>
   33  
   34   <!-- Ionic's root component and where the app will load -->
   35   <ion-app></ion-app>
   36  
   37   <!-- The polyfills js is generated during the build process -->
   38   <script src="build/polyfills.js"></script>
   39  
   40   <!-- The vendor js is generated during the build process
   41       and contains all code in `node_modules` -->
   42   <script src="build/vendor.js"></script>
   43  
   44   <!-- The bundle js is generated during the build process -->
   45   <script src="build/main.js"></script>
   46  
   47 </body>
   48 </html>

Grato desde já!

1 resposta
solução!

Acho q ele não criou o projeto usando o V1 do ionic.

Tente gerar outro projeto agora passando esses argumentos:

ionic start AluraCar blank --type ionic1

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software